comparison deploy/linux/deploy-appimage.sh @ 1883:033fcd33e125 appimage

Experimental AppImage package
author Chris Cannam
date Tue, 26 Jun 2018 18:02:21 +0100
parents
children f8f3fa1b1286
comparison
equal deleted inserted replaced
1881:11342618ccbe 1883:033fcd33e125
1 #!/bin/bash
2
3 set -eu
4
5 program=sonic-visualiser
6 checker=vamp-plugin-load-checker
7 piper=piper-vamp-simple-server
8
9 targetdir="${program}.AppDir"
10
11 echo "Target dir is $targetdir"
12
13 if [ -d "$targetdir" ]; then
14 echo "Target directory exists, not overwriting"
15 exit
16 fi
17
18 mkdir "$targetdir"
19
20 mkdir -p "$targetdir"/usr/bin
21 mkdir -p "$targetdir"/usr/lib
22
23 cp "$program" "$checker" "$piper" "$targetdir"/usr/bin/
24
25 for lib in $(ldd "$program" | grep '=> /usr/lib/' | sed 's/^.*=> //' | sed 's/ .*$//'); do
26 mkdir -p "$targetdir/$(dirname $lib)"
27 cp -L "$lib" "$targetdir/$lib"
28 done
29
30 cp "$program.desktop" "$targetdir/"
31
32 cp "icons/sv-icon.svg" "$targetdir/"
33
34 cp sv-dependency-builds/linux/appimage/AppRun-x86_64 "$targetdir/AppRun"
35 chmod +x "$targetdir/AppRun"
36
37 ARCH=x86_64 sv-dependency-builds/linux/appimage/appimagetool-x86_64.AppImage "$targetdir"
38