Skip to content

Commit 21fbc64

Browse files
authored
switch appimagetool
1 parent 9e099ad commit 21fbc64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android-tools-appimage.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ APP=android-tools-appimage
55
APPDIR="$APP".AppDir
66
SITE="https://dl.google.com/android/repository/platform-tools-latest-linux.zip"
77
ICON="https://developer.android.com/static/images/brand/Android_Robot.png"
8-
APPIMAGETOOL=$(wget -q https://api.github.com/repos/probonopd/go-appimage/releases -O - | sed 's/[()",{}]/ /g; s/ /\n/g' | grep -o 'https.*continuous.*tool.*86_64.*mage$')
8+
APPIMAGETOOL="https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage"
99

1010
# CREATE DIRECTORIES AND DOWNLOAD THE ARCHIVE
1111
[ -n "$APP" ] || exit 1
@@ -132,6 +132,6 @@ export VERSION="$(awk -F"=" '/vision/ {print $2}' ./usr/bin/source.properties)"
132132

133133
# Do the thing!
134134
cd .. && wget -q "$APPIMAGETOOL" -O appimagetool && chmod +x ./appimagetool
135-
./appimagetool -s ./"$APPDIR" || exit 1
135+
./appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 22 ./"$APPDIR" || exit 1
136136
[ -n "$APP" ] && mv ./*.AppImage .. && cd .. && rm -rf "$APP" || exit 1
137137
echo "All Done!"

0 commit comments

Comments
 (0)