add the google play app declarations to the phone init
This commit is contained in:
parent
fd07fdbb34
commit
71659092dc
1
boxes/phone/init/.gitignore
vendored
1
boxes/phone/init/.gitignore
vendored
@ -1 +1,2 @@
|
||||
app_cache/
|
||||
gpapp_cache/
|
||||
|
3
boxes/phone/init/gpapps
Normal file
3
boxes/phone/init/gpapps
Normal file
@ -0,0 +1,3 @@
|
||||
com.ministrycentered.PlanningCenter
|
||||
com.groupme.android
|
||||
com.brivo.pass
|
@ -4,3 +4,31 @@ for i in $(cat apps); do
|
||||
curl "$i" --max-redirs 999 -L -C - -o "app_cache/$output_name"
|
||||
adb install "app_cache/$output_name"
|
||||
done
|
||||
|
||||
mkdir -p gpapp_cache
|
||||
for i in $(cat gpapps); do
|
||||
apkeep -a "$i" ./gpapp_cache/
|
||||
done
|
||||
|
||||
for i in $(ls gpapp_cache/ | grep xapk); do
|
||||
# this is specific to planning center online
|
||||
xapk_playground=$(mktemp)
|
||||
rm $xapk_playground
|
||||
mkdir $xapk_playground
|
||||
|
||||
cp gpapp_cache/$i $xapk_playground
|
||||
cd $xapk_playground
|
||||
mkdir out
|
||||
unzip $i -d out
|
||||
cd -
|
||||
cd $xapk_playground/out
|
||||
rm icon.png
|
||||
rm manifest.json
|
||||
adb install-multiple *
|
||||
cd -
|
||||
done
|
||||
|
||||
cd gpapp_cache
|
||||
for i in $(ls | grep '\.apk'); do
|
||||
adb install $i
|
||||
done
|
||||
|
7
boxes/phone/init/shell.nix
Normal file
7
boxes/phone/init/shell.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.apkeep
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user