Skip to content

Commit 84c2ae1

Browse files
Update snapcraft.yaml
1 parent 08d0190 commit 84c2ae1

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

snapcraft.yaml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,34 @@ parts:
4444
source:
4545
- on amd64: out/make/deb/x64/swach_${SNAP_VERSION}_amd64.deb
4646
- on arm64: out/make/deb/arm64/swach_${SNAP_VERSION}_arm64.deb
47+
override-stage: |
48+
craftctl default
49+
echo "=== DEBUG: Contents after stage in $CRAFT_STAGE ==="
50+
ls -laR $CRAFT_STAGE/bin/ || echo "bin/ does not exist"
51+
echo "=== Looking for Swach ==="
52+
find $CRAFT_STAGE -name "*Swach*" -o -name "*swach*" | head -20
53+
echo "=== Contents of usr/lib/swach ==="
54+
ls -la $CRAFT_STAGE/usr/lib/swach/ || echo "usr/lib/swach does not exist"
4755
organize:
48-
usr/bin/swach: bin/Swach
49-
stage:
50-
- bin/Swach
51-
- usr/lib/swach/*
52-
- usr/share/*
56+
usr/lib/swach/Swach: bin/Swach
5357
prime:
5458
- bin/Swach
5559
- usr/lib/swach/*
5660
- usr/share/*
5761
override-prime: |
5862
craftctl default
63+
echo "=== DEBUG: Prime directory after craftctl default ==="
64+
echo "Working directory: $(pwd)"
65+
echo "Contents of bin/:"
66+
ls -la bin/ || echo "bin/ does not exist"
67+
echo "Contents of usr/lib/swach/:"
68+
ls -la usr/lib/swach/ || echo "usr/lib/swach/ does not exist"
69+
echo "=== Looking for Swach anywhere ==="
70+
find . -name "*Swach*" -o -name "*swach*" | grep -i swach | head -20
5971
# Fix chrome-sandbox permissions - remove setuid bit
60-
chmod 755 usr/lib/swach/chrome-sandbox
72+
if [ -f usr/lib/swach/chrome-sandbox ]; then
73+
chmod 755 usr/lib/swach/chrome-sandbox
74+
fi
6175
stage-packages:
6276
- libasound2
6377
- libatk-bridge2.0-0

0 commit comments

Comments
 (0)