-
-
Save parkerlreed/1bec22c47665b09d5080094efb7b2fab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/data/data/com.termux/files/usr/bin/bash | |
cd /data/data/com.termux/files/home/nightly-apk | |
pull_and_update() { | |
aria2c --download-result hide $2 | |
filename="${2##*/}" | |
echo "Installing package: $1" | |
adb -s emulator-5554 install $filename | |
termux-toast -b black "Application updated" | |
rm $filename | |
} | |
case $1 in | |
krita) | |
url=$(./download-latest-jenkins-artifact.py Krita_Nightly_Android_arm64-v8a_Build) | |
pull_and_update Krita $url | |
;; | |
retroarch) | |
url="https://buildbot.libretro.com/nightly/android/RetroArch_aarch64.apk" | |
pull_and_update RetroArch $url | |
;; | |
auroradroid) | |
url=$(lynx -dump https://files.auroraoss.com/AuroraDroid/Nightly/ | awk '/http/{print $2}' | tail -1) | |
pull_and_update Aurora $url | |
;; | |
kiwibrowser) | |
url=$(curl -s -H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer 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" \ | |
-G -d 'per_page=1' \ | |
https://api.github.com/repos/kiwibrowser/src.next/releases |\ | |
jq -r '.[].assets[] | select(.browser_download_url | test("browser-arm64")) | .browser_download_url') | |
pull_and_update Kiwi $url | |
;; | |
dolphin) | |
url=$(lynx -dump https://dolphin-emu.org/download/ | awk '/https.*apk/{print $2}' | sed -n 6p) | |
pull_and_update Dolphin $url | |
;; | |
*) | |
echo "Invalid application name" | |
;; | |
esac | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment