Mercurial > hg > sonic-annotator
comparison deploy/linux/AppRun @ 371:a0ff34e9e86b
First cut at Linux AppImage
author | Chris Cannam |
---|---|
date | Fri, 05 Jun 2020 11:08:37 +0100 |
parents | |
children | f7b1e81991e4 |
comparison
equal
deleted
inserted
replaced
370:3e0133aa2354 | 371:a0ff34e9e86b |
---|---|
1 #!/bin/sh | |
2 | |
3 mydir=$(dirname "$0") | |
4 case "$mydir" in | |
5 /*) ;; | |
6 *) mydir="$PWD/$mydir";; | |
7 esac | |
8 | |
9 echo "AppImage root is $mydir" | |
10 | |
11 PATH="$mydir/usr/bin:$mydir/bin:$PATH" | |
12 export PATH | |
13 | |
14 LD_LIBRARY_PATH="$mydir/usr/lib:$mydir/usr/lib/x86_64-linux-gnu:$mydir/usr/lib64:$LD_LIBRARY_PATH" | |
15 export LD_LIBRARY_PATH | |
16 | |
17 QT_PLUGIN_PATH="$mydir/usr/lib/qt5/plugins/:$mydir/usr/lib/x86_64-linux-gnu/qt5/plugins/:$mydir/usr/lib64/qt5/plugins/:$QT_PLUGIN_PATH" | |
18 export QT_PLUGIN_PATH | |
19 | |
20 XDG_DATA_DIRS="$mydir/usr/share:$XDG_DATA_DIRS:/usr/local/share:/usr/share" | |
21 export XDG_DATA_DIRS | |
22 | |
23 GSETTINGS_SCHEMA_DIR="$mydir/usr/share/glib-2.0/schemas:$GSETTINGS_SCHEMA_DIR" | |
24 export GSETTINGS_SCHEMA_DIR | |
25 | |
26 exec "$mydir/usr/bin/sonic-visualiser" "$@" |