mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 14:45:46 +01:00
1329 improve folder watch (#1402)
This commit is contained in:
parent
f545a84ba6
commit
3869ac08db
24 changed files with 561 additions and 195 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue