Skip to content

Commit f0faacb

Browse files
committed
fix(snap): Fix zenity part not buildable due to unavailable stage snap
The fixes the following build failure: ```text Pulling zenity-integration Error downloading snap 'zenity-integration' from channel 'latest/stable'. ``` This is due to the fact that the snap is based on core22, but [the zenity-integration stage snap only supports core18](https://forum.snapcraft.io/t/the-zenity-integration-stage-snap/10870): ```text $ snap info zenity-integration --verbose | grep ^base: base: core18 ``` We should fall back to [the generic approach](https://forum.snapcraft.io/t/support-presenting-gui-dialogs-using-zenity/41218) until the situation is improved. Fixes #12. Signed-off-by: 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com>
1 parent 9e3f7f8 commit f0faacb

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

snap/snapcraft.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,14 @@ parts:
125125

126126
# Integrate custom dialogs in your snap - doc - snapcraft.io
127127
# https://forum.snapcraft.io/t/integrate-custom-dialogs-in-your-snap/10825
128-
zenity-integration:
128+
zenity:
129129
plugin: nil
130-
stage-snaps:
131-
- zenity-integration
130+
stage-packages:
131+
- zenity
132+
prime:
133+
- usr/bin/zenity
134+
- usr/share/zenity/*
135+
- usr/share/doc/*/copyright*
132136

133137
main:
134138
after:
@@ -163,6 +167,11 @@ parts:
163167
164168
"${CRAFT_PROJECT_DIR}/snap/local/patching/patch-desktop-entries.bash"
165169
170+
layout:
171+
# Fix resource relocation problem of zenity part
172+
/usr/share/zenity:
173+
symlink: $SNAP/usr/share/zenity
174+
166175
# Apps that are exposed by the snap package
167176
# If the _app_name_ is identical with the _snap_name_ it can be directly
168177
# run with `_snap_name_` or `snap run _snap_name_` commands, otherwise it

0 commit comments

Comments
 (0)