]> sigrok.org Git - sigrok-util.git/blobdiff - cross-compile/appimage/sigrok-native-appimage
sigrok-native-appimage: Replace obsolete generate_appimage().
[sigrok-util.git] / cross-compile / appimage / sigrok-native-appimage
index 6ea6b9f310bc2eaa85316f07192f165c7a2dd7fb..71f81955664e45c4cf3ca3d1ede2672fc0a25281 100755 (executable)
 
 PREFIX=$HOME/sr
 
+APPIMAGEKIT_OUTDIR=$HOME/AppImageKit/out
+
 ARCH=x86_64
 
+########################################################################
+# You usually don't have to change anything below this line
+########################################################################
+
 APP=PulseView
 LOWERAPP=${APP,,} 
 
+export STATIC_FILES=`pwd`/contrib
+
+# Add $APPIMAGEKIT_OUTDIR so we can find all the binaries there.
+export PATH=$APPIMAGEKIT_OUTDIR:$PATH
+
 A="./$APP/$APP.AppDir"
 mkdir -p $A/usr/bin $A/usr/lib $A/usr/share
 cd ./$APP
@@ -41,7 +52,7 @@ strip usr/lib/*
 # AppRun is the main launcher that gets executed when AppImage is run
 ########################################################################
 
-get_apprun
+cp $APPIMAGEKIT_OUTDIR/AppRun .
 
 ########################################################################
 # Copy desktop and icon file to AppDir for AppRun to pick them up
@@ -90,4 +101,6 @@ patch_usr
 
 cd ..
 
-generate_appimage
+VERSION=$VERSION $APPIMAGEKIT_OUTDIR/appimagetool ./$APP.AppDir/
+mkdir -p ../out/ || true
+mv *.AppImage* ../out/