File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if [ -z "$APP" ]; then exit 1; fi
88mkdir -p " ./$APP /tmp" && cd " ./$APP /tmp" || exit
99
1010# DOWNLOAD THE ARCHIVE
11- wget " $SITE /$APP -latest-linux.zip" && unzip -qq ./* .zip
11+ wget " $SITE /platform-tools -latest-linux.zip" && unzip -qq ./* .zip
1212cd ..
1313mkdir " ./$APP .AppDir" && mv --backup=t ./tmp/* /* ./$APP .AppDir
1414cd ./$APP .AppDir || exit
5555chmod a+x ./AppRun
5656
5757# MAKE APPIMAGE
58- VERSION =$( cat source.properties | grep vision | awk -F = ' {print $NF; exit}' )
58+ APPVERSION =$( cat source.properties | grep vision | awk -F = ' {print $NF; exit}' )
5959cd ..
6060wget -q $( wget -q https://api.github.com/repos/probonopd/go-appimage/releases -O - | grep -v zsync | grep -i continuous | grep -i appimagetool | grep -i x86_64 | grep browser_download_url | cut -d ' "' -f 4 | head -1) -O appimagetool
6161chmod a+x ./appimagetool
6262
6363# Do the thing!
6464ARCH=x86_64 VERSION=$( ./appimagetool -v | grep -o ' [[:digit:]]*' ) ./appimagetool -s ./$APP .AppDir &&
6565ls ./* .AppImage || { echo " appimagetool failed to make the appimage" ; exit 1; }
66- mv ./* AppImage ./" $VERSION " -" platform-tools.AppImage"
66+ mv ./* AppImage ./" $APPVERSION " -" platform-tools.AppImage"
6767if [ -z " $APP " ]; then exit 1; fi # Being extra safe lol
6868mv ./* .AppImage .. && cd .. && rm -rf " ./$APP "
6969echo " All Done!"
You can’t perform that action at this time.
0 commit comments