-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
27 lines (21 loc) · 917 Bytes
/
make-appimage.sh
File metadata and controls
27 lines (21 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
set -eu
ARCH=$(uname -m)
export ARCH
export OUTPATH=./dist
export ADD_HOOKS="udev-installer.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export DESKTOP=DUMMY
export MAIN_BIN=adb
export APPNAME=Android_Tools
# Deploy dependencies
quick-sharun ./AppDir/bin/*
# add udev rules
UDEV_RULES="https://github.com/M0Rf30/android-udev-rules/refs/heads/main/51-android.rules"
wget --retry-connrefused --tries=30 "$UDEV_RULES" -O ./AppDir/etc/udev/rules.d/51-android.rules
sed -i "/cp -v '\$_tmp_udev_dir'/a groupadd -f adbusers; usermod -a -G adbusers \$(logname)" ./AppDir/bin/udev-installer.hook
# Turn AppDir into AppImage
quick-sharun --make-appimage
# Test the app for 12 seconds, if the test fails due to the app
# having issues running in the CI use --simple-test instead
quick-sharun --simple-test ./dist/*.AppImage