1329 improve folder watch (#1402)

This commit is contained in:
Raivis Dejus 2026-02-27 19:49:38 +02:00 committed by GitHub
commit 3869ac08db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 561 additions and 195 deletions

View file

@ -115,6 +115,12 @@ parts:
# Clean caches
uv cache clean
# Create launcher wrapper to ensure the snap's own libasound.so.2 is found
# before gnome content snap libraries (which desktop-launch prepends to LD_LIBRARY_PATH)
mkdir -p $CRAFT_PART_INSTALL/bin
printf '#!/bin/sh\nexport LD_LIBRARY_PATH="$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"\nexec "$SNAP/bin/python" -m buzz "$@"\n' > $CRAFT_PART_INSTALL/bin/buzz-launcher
chmod +x $CRAFT_PART_INSTALL/bin/buzz-launcher
# Copy source files
cp -r $CRAFT_PART_BUILD/buzz $CRAFT_PART_INSTALL/
cp -r $CRAFT_PART_BUILD/ctc_forced_aligner $CRAFT_PART_INSTALL/
@ -148,7 +154,7 @@ apps:
- gnome
command-chain:
- bin/gpu-2404-wrapper
command: snap/command-chain/desktop-launch $SNAP/bin/python -m buzz
command: snap/command-chain/desktop-launch $SNAP/bin/buzz-launcher
desktop: usr/share/applications/buzz.desktop
environment:
PATH: $SNAP/usr/bin:$SNAP/bin:$PATH