mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
Make available some additional scripts
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
c69d8aec8b
commit
b4f17b39cd
41
Scripts/Generate_Supporting_Files.sh
Normal file
41
Scripts/Generate_Supporting_Files.sh
Normal file
@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
#Copyright (c) 2022 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation, either version 3 of the License, or
|
||||
#(at your option) any later version.
|
||||
#
|
||||
#This program is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#source build/envsetup.sh && breakfast lineage_clark-user && make -j20 otatools;
|
||||
|
||||
export repoDir="/mnt/backup-1/DOS/Builds/Supporting_Files/";
|
||||
mkdir -p $repoDir;
|
||||
|
||||
devicesCopy=(akari alioth Amber aura aurora avicii blueline bonito bramble cheryl coral crosshatch davinci discovery enchilada fajita flame FP3 FP4 guacamole guacamoleb hotdog hotdogb marlin mata pioneer pro1 redfin sailfish sargo sunfish taimen vayu voyager walleye xz2c instantnoodle instantnoodlep kebab lemonade lemonadep);
|
||||
|
||||
for device in "${devicesCopy[@]}"
|
||||
do
|
||||
if [ -d "/mnt/dos/Signing_Keys/4096pro/$device/" ]; then
|
||||
mkdir -p "$repoDir/$device";
|
||||
./build/tools/releasetools/sign_zip.py -k "/mnt/dos/Signing_Keys/4096pro/$device/releasekey" "/mnt/backup-1/DOS/Builds/Extras/copy-partitions-20210323_1922-cleaned.zip" "$repoDir/$device/copy-partitions-$device-release.zip";
|
||||
./build/tools/releasetools/sign_zip.py -k "/mnt/dos/Signing_Keys/4096pro/$device/extra" "/mnt/backup-1/DOS/Builds/Extras/copy-partitions-20210323_1922-cleaned.zip" "$repoDir/$device/copy-partitions-$device-extra.zip";
|
||||
fi;
|
||||
done;
|
||||
|
||||
devicesAVB=(akari alioth Amber aura aurora avicii beryllium blueline bonito bramble coral crosshatch davinci enchilada fajita flame FP3 FP4 guacamole guacamoleb hotdog hotdogb lavender lmi pro1 raphael redfin sargo sunfish taimen vayu walleye xz2c instantnoodle instantnoodlep kebab lemonade lemonadep);
|
||||
|
||||
for device in "${devicesAVB[@]}"
|
||||
do
|
||||
if [ -d "/mnt/dos/Signing_Keys/4096pro/$device/" ]; then
|
||||
mkdir -p "$repoDir/$device";
|
||||
cp "/mnt/dos/Signing_Keys/4096pro/$device/avb_pkmd.bin" "$repoDir/$device/avb_pkmd-$device.bin";
|
||||
fi;
|
||||
done;
|
1
Scripts/WebView_Compress_Repo.sh
Normal file
1
Scripts/WebView_Compress_Repo.sh
Normal file
@ -0,0 +1 @@
|
||||
tar "-I zstd -3 -T24 --long=29" -cf repo.tar.zst repo/
|
42
Scripts/WebView_Update_Repo.sh
Normal file
42
Scripts/WebView_Update_Repo.sh
Normal file
@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
#Copyright (c) 2021-2022 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation, either version 3 of the License, or
|
||||
#(at your option) any later version.
|
||||
#
|
||||
#This program is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
export version="104.0.5112.69-1";
|
||||
export PATH=$PATH:$HOME/Android/Sdk/build-tools/28.0.3;
|
||||
export webviewARM32="/mnt/dos/Repos/DivestOS_WebView/prebuilt/arm/webview.apk";
|
||||
export webviewARM64="/mnt/dos/Repos/DivestOS_WebView/prebuilt/arm64/webview.apk";
|
||||
export repoDir="/mnt/dos/Repos/DivestOS_WebView-FDroid/repo/";
|
||||
mkdir -p $repoDir;
|
||||
|
||||
devicesARM32=(apollo bacon crackling d2att d2spr d2tmo d2vzw d800 d801 d802 d803 d850 d851 d852 d855 deb f400 flo flox FP2 grouper ham hammerhead harpia i9100 i9300 i9305 jflteatt jfltespr jfltevzw jfltexx kccat6 kipper klte lentislte ls990 m7 m8 m8d maguro mako manta merlin n5100 n5110 n5120 osprey serrano3gxx serranoltexx shamu surnia thor tilapia toro toroplus v1awifi victara vs985);
|
||||
devicesARM64=(akari alioth Amber angler aura aurora avicii axon7 beryllium blueline bonito bramble bullhead cheeseburger cheryl clark coral crosshatch davinci discovery dragon dumpling enchilada ether fajita flame flounder flounder_lte FP3 FP4 griffin guacamole guacamoleb h811 h815 h850 h870 h910 h918 h990 hero2lte herolte himaul himawl hotdog hotdogb instantnoodle instantnoodlep kebab land lavender lemonade lemonadep lmi ls997 marlin mata oneplus2 oneplus3 pioneer pro1 raphael redfin rs988 sailfish santoni sargo star2lte starlte sunfish taimen us996 us997 vayu voyager vs995 walleye xz2c yellowstone Z00T z2_plus);
|
||||
devicesX86=(fugu);
|
||||
|
||||
for device in "${devicesARM32[@]}"
|
||||
do
|
||||
if [ -d "/mnt/dos/Signing_Keys/4096pro/$device/" ]; then
|
||||
cp --reflink=auto "$webviewARM32" "$repoDir/arm-$device-$version.apk";
|
||||
apksigner sign --key "/mnt/dos/Signing_Keys/4096pro/$device/releasekey.pk8" --cert "/mnt/dos/Signing_Keys/4096pro/$device/releasekey.x509.pem" "$repoDir/arm-$device-$version.apk";
|
||||
fi;
|
||||
done;
|
||||
|
||||
for device in "${devicesARM64[@]}"
|
||||
do
|
||||
if [ -d "/mnt/dos/Signing_Keys/4096pro/$device/" ]; then
|
||||
cp --reflink=auto "$webviewARM64" "$repoDir/arm64-$device-$version.apk";
|
||||
apksigner sign --key "/mnt/dos/Signing_Keys/4096pro/$device/releasekey.pk8" --cert "/mnt/dos/Signing_Keys/4096pro/$device/releasekey.x509.pem" "$repoDir/arm64-$device-$version.apk";
|
||||
fi;
|
||||
done;
|
Loading…
Reference in New Issue
Block a user