declarative app installation method for phone

This commit is contained in:
stupidcomputer 2024-11-04 00:06:45 -06:00
parent 19585d432a
commit 6667309c1a
3 changed files with 25 additions and 0 deletions

1
boxes/phone/init/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
app_cache/

18
boxes/phone/init/apps Normal file
View File

@ -0,0 +1,18 @@
https://f-droid.org/repo/com.termux_1020.apk
https://f-droid.org/repo/com.termux.api_51.apk
https://f-droid.org/repo/com.termux.widget_13.apk
https://f-droid.org/repo/com.coboltforge.dontmind.multivnc_101.apk
https://f-droid.org/repo/com.kylecorry.trail_sense_124.apk
https://f-droid.org/repo/org.ligi.survivalmanual_428.apk
https://github.com/bitwarden/android/releases/download/v2024.4.0/com.x8bit.bitwarden.apk
https://f-droid.org/repo/at.bitfire.icsdroid_81.apk
https://f-droid.org/repo/ws.xsoh.etar_47.apk
https://f-droid.org/repo/at.bitfire.davdroid_404030200.apk
https://f-droid.org/repo/org.oxycblt.auxio_53.apk
https://f-droid.org/repo/de.danoeh.antennapod_3050095.apk
https://f-droid.org/repo/eu.faircode.email_2241.apk
https://f-droid.org/repo/org.koreader.launcher.fdroid_105232.apk
https://f-droid.org/repo/at.techbee.jtx_209010003.apk
https://f-droid.org/repo/mn.tck.semitone_4.apk
https://f-droid.org/repo/de.moekadu.tuner_38.apk
https://f-droid.org/repo/io.github.domi04151309.home_1100.apk

6
boxes/phone/init/main.sh Executable file
View File

@ -0,0 +1,6 @@
mkdir -p app_cache
for i in $(cat apps); do
output_name=$(echo $i | awk -F'/' '{print $NF}')
curl "$i" --max-redirs 999 -L -C - -o "app_cache/$output_name"
adb install "app_cache/$output_name"
done