mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 22:55:46 +01:00
Fix for snap
This commit is contained in:
parent
c0c2ec5be1
commit
63ca7dec38
1 changed files with 8 additions and 4 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
|
||||
|
|
@ -176,6 +182,4 @@ apps:
|
|||
|
||||
layout:
|
||||
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/alsa-lib:
|
||||
bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/alsa-lib
|
||||
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libasound.so.2:
|
||||
symlink: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libasound.so.2
|
||||
bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/alsa-lib
|
||||
Loading…
Add table
Add a link
Reference in a new issue