Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] (snap) zenityのlayout変更 及び core22等の重複ファイルのクリーンアップを追加 #616

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,30 @@ parts:
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/

zenity:
# Integrate custom dialogs in your snap - doc - snapcraft.io
# https://forum.snapcraft.io/t/integrate-custom-dialogs-in-your-snap/10825
plugin: nil
stage-packages:
- zenity
prime:
- usr/bin/zenity
- usr/share/zenity/*
- usr/share/doc/*/copyright*

cleanup:
after: [miria, zenity] # Make this part run last; list all your other parts here
plugin: nil
build-snaps: [gnome-42-2204, gtk-common-themes, core22] # List all content-snaps you're using here
override-prime: |
set -eux
for snap in "gnome-42-2204" "gtk-common-themes" "core22"; do # List all content-snaps you're using here
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" "$SNAPCRAFT_PRIME/usr/{}" \;
done

layout:
# Fix resource relocation problem of zenity part
/usr/share/zenity:
symlink: $SNAP/usr/share/zenity

lint:
ignore:
Expand Down