Created
October 30, 2022 10:00
-
-
Save retrozenith/62b0879f8163153340563937b2edc3f1 to your computer and use it in GitHub Desktop.
a simple script for building; uploading & pushing DerpFest OTA on exynos9820 devices !
This file contains hidden or 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
#!/bin/bash | |
# Define Simple Building Function | |
echo "Current PATH is $(pwd) executing jobs ..." | |
export sauce="$(pwd)" | |
build() { | |
. build/envsetup.sh | |
lunch derp_$1-userdebug | |
mka derp | |
} | |
upload() { | |
cd out/target/product | |
for codename in ./* ; do (cd $codename && scp Derp*.zip [email protected]:/home/frs/project/derpfest/$codename); done | |
cd - | |
} | |
push_ota() { | |
if [[ -d "ota" ]]; then | |
cd ota | |
export ota_path="$(pwd)" | |
for json in ../out/target/product/$1 ; do (cd $json && cp $1.json $ota_path ); done | |
cd $sauce | |
git commit -m "exynos9820: Push OTA $(date +%d/%m/%y)" | |
else | |
git clone https://github.com/DerpFest-AOSP/Updater-Stuff ./ota -b master | |
cd ota | |
export ota_path="$(pwd)" | |
for json in ../out/target/product/* ; do (cd $json && cp $1.json $ota_path ); done | |
cd $sauce | |
git commit -m "exynos9820: Push OTA $(date +%d/%m/%y)" | |
fi | |
} | |
# Get A Life MF | |
build beyond0lte | |
build beyond1lte | |
build beyond2lte | |
build beyondx | |
build d1 | |
build d2s | |
build d2x | |
upload beyond0lte | |
upload beyond1lte | |
upload beyond2lte | |
upload beyondx | |
upload d1 | |
upload d2s | |
upload d2x | |
push_ota beyond0lte | |
push_ota beyond1lte | |
push_ota beyond2lte | |
push_ota beyondx | |
push_ota d1 | |
push_ota d2s | |
push_ota d2x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment