Skip to content

Commit

Permalink
Merge pull request #616 from Npepperlinux/zenity-integration_file-cost
Browse files Browse the repository at this point in the history
[Linux] (snap) zenityの`layout`変更 及び core22等の重複ファイルのクリーンアップを追加
  • Loading branch information
shiosyakeyakini-info authored Oct 18, 2024
2 parents ce8bd99 + 3ce95ea commit 55e0741
Showing 1 changed file with 18 additions and 0 deletions.
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

0 comments on commit 55e0741

Please sign in to comment.