Mercurial > hg > sonic-visualiser
changeset 1883:033fcd33e125 appimage
Experimental AppImage package
author | Chris Cannam |
---|---|
date | Tue, 26 Jun 2018 18:02:21 +0100 |
parents | 11342618ccbe |
children | 430f0cdb24f9 |
files | .travis.yml deploy/linux/deploy-appimage.sh repoint-lock.json |
diffstat | 3 files changed, 41 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/.travis.yml Tue Jun 26 13:29:40 2018 +0100 +++ b/.travis.yml Tue Jun 26 18:02:21 2018 +0100 @@ -28,4 +28,5 @@ script: - make -j3 - + - if [[ "$TRAVIS_OS_NAME" = "linux" ]] ; then ./deploy/linux/deploy-appimage.sh ; fi +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deploy/linux/deploy-appimage.sh Tue Jun 26 18:02:21 2018 +0100 @@ -0,0 +1,38 @@ +#!/bin/bash + +set -eu + +program=sonic-visualiser +checker=vamp-plugin-load-checker +piper=piper-vamp-simple-server + +targetdir="${program}.AppDir" + +echo "Target dir is $targetdir" + +if [ -d "$targetdir" ]; then + echo "Target directory exists, not overwriting" + exit +fi + +mkdir "$targetdir" + +mkdir -p "$targetdir"/usr/bin +mkdir -p "$targetdir"/usr/lib + +cp "$program" "$checker" "$piper" "$targetdir"/usr/bin/ + +for lib in $(ldd "$program" | grep '=> /usr/lib/' | sed 's/^.*=> //' | sed 's/ .*$//'); do + mkdir -p "$targetdir/$(dirname $lib)" + cp -L "$lib" "$targetdir/$lib" +done + +cp "$program.desktop" "$targetdir/" + +cp "icons/sv-icon.svg" "$targetdir/" + +cp sv-dependency-builds/linux/appimage/AppRun-x86_64 "$targetdir/AppRun" +chmod +x "$targetdir/AppRun" + +ARCH=x86_64 sv-dependency-builds/linux/appimage/appimagetool-x86_64.AppImage "$targetdir" +