Skip to content

Commit 2e6cb11

Browse files
authored
Update android-tools-appimage.sh
1 parent f2d368c commit 2e6cb11

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

android-tools-appimage.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ -z "$APP" ]; then exit 1; fi
88
mkdir -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
1212
cd ..
1313
mkdir "./$APP.AppDir" && mv --backup=t ./tmp/*/* ./$APP.AppDir
1414
cd ./$APP.AppDir || exit
@@ -55,15 +55,15 @@ EOF
5555
chmod 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}')
5959
cd ..
6060
wget -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
6161
chmod a+x ./appimagetool
6262

6363
# Do the thing!
6464
ARCH=x86_64 VERSION=$(./appimagetool -v | grep -o '[[:digit:]]*') ./appimagetool -s ./$APP.AppDir &&
6565
ls ./*.AppImage || { echo "appimagetool failed to make the appimage"; exit 1; }
66-
mv ./*AppImage ./"$VERSION"-"platform-tools.AppImage"
66+
mv ./*AppImage ./"$APPVERSION"-"platform-tools.AppImage"
6767
if [ -z "$APP" ]; then exit 1; fi # Being extra safe lol
6868
mv ./*.AppImage .. && cd .. && rm -rf "./$APP"
6969
echo "All Done!"

0 commit comments

Comments
 (0)