Skip to content

Commit 222e12d

Browse files
authored
add appbundle
1 parent 20a3ee9 commit 222e12d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

android-tools-appimage.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,21 @@ cd ..
147147
wget "$APPIMAGETOOL" -O appimagetool
148148
chmod +x ./appimagetool
149149
./appimagetool -n -u "$UPINFO" ./AppDir
150+
151+
UPINFO="$(echo "$UPINFO" | sed 's#.AppImage.zsync#*.AppBundle.zsync#g')"
152+
wget -O ./pelf "https://github.com/xplshn/pelf/releases/latest/download/pelf_$ARCH"
153+
chmod +x ./pelf
154+
echo "Generating [dwfs]AppBundle..."
155+
./pelf \
156+
--add-appdir ./AppDir \
157+
--appimage-compat \
158+
--disable-use-random-workdir \
159+
--add-updinfo "$UPINFO" \
160+
--compression "-C zstd:level=22 -S26 -B8" \
161+
--appbundle-id="android-tools#github.com/$GITHUB_REPOSITORY:$VERSION@$(date +%d_%m_%Y)" \
162+
--output-to ./Android-platform-tools-"$VERSION"-"$ARCH".dwfs.AppBundle
163+
164+
echo "Generating zsync file..."
165+
zsyncmake ./*.AppBundle -u ./*.AppBundle
166+
150167
echo "All Done!"

0 commit comments

Comments
 (0)