From 83da35e6c73a3abfffcebde1fbe6ca6e6a527c57 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sat, 11 Apr 2020 14:19:14 -0700 Subject: [PATCH] OK, final set of snapcraft.yaml changes for 0.90.0 (hopefully) --- snap/snapcraft.yaml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 124d875be..59d3b8192 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -26,6 +26,8 @@ parts: plugin: cmake configflags: - -DCMAKE_BUILD_TYPE=Release + - -DCMAKE_INSTALL_PREFIX=/usr + - -DENABLE_SNAP=true source: https://github.com/clangen/musikcube.git build-packages: - build-essential @@ -76,9 +78,27 @@ parts: - libtag1v5 apps: - musikcube: - desktop: share/applications/musikcube.desktop - command: desktop-launch $SNAP/share/musikcube/musikcube + app: + desktop: usr/share/applications/musikcube.snap.desktop + command: desktop-launch $SNAP/usr/share/musikcube/musikcube + environment: + LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio + ALSA_CONFIG_PATH: /snap/$SNAPCRAFT_PROJECT_NAME/current/usr/share/alsa/alsa.conf + LANG: C.UTF-8 + plugs: + - home + - removable-media + - pulseaudio + - network + - network-bind + - audio-playback + - alsa + - desktop + slots: + - mpris + + daemon: + command: desktop-launch $SNAP/usr/share/musikcube/musikcubed environment: LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio ALSA_CONFIG_PATH: /snap/$SNAPCRAFT_PROJECT_NAME/current/usr/share/alsa/alsa.conf