mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-25 15:39:26 -05:00
GPG verify all F-Droid apps before copy
This commit is contained in:
parent
98762a1ccf
commit
8e79da6971
@ -1 +1 @@
|
||||
Subproject commit 85565adbc051a59bb0da8a138456d4f2a06d8296
|
||||
Subproject commit d205a9abc259baf4c912119ecec9e73508d4ae48
|
@ -46,6 +46,23 @@ gitReset() {
|
||||
}
|
||||
export -f gitReset;
|
||||
|
||||
gpgVerifyDirectory() {
|
||||
if [ -r "$HOME/.gnupg" ]; then
|
||||
for sig in $1/*.asc; do
|
||||
gpg --verify $sig &>/dev/null;
|
||||
if [ "$?" -eq "0" ]; then
|
||||
echo -e "\e[0;32mGPG Verified Successfully: $sig\e[0m";
|
||||
else
|
||||
echo -e "\e[0;31mWARNING: GPG Verification Failed: $sig\e[0m";
|
||||
sleep 60;
|
||||
fi;
|
||||
done;
|
||||
else
|
||||
echo -e "\e[0;33mWARNING: ~/.gnupg is unavailable, GPG verification of $1 will not be performed!\e[0m";
|
||||
fi;
|
||||
}
|
||||
export -f gpgVerifyDirectory;
|
||||
|
||||
scanForMalware() {
|
||||
if [ -x /usr/bin/clamscan ] && [ -r /var/lib/clamav/main.cvd ]; then
|
||||
echo -e "\e[0;32mStarting a malware scan...\e[0m";
|
||||
|
@ -58,6 +58,7 @@ echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/a
|
||||
|
||||
#top dir
|
||||
cp -r "$DOS_PREBUILT_APPS""Fennec_DOS-Shim" "$DOS_BUILD_BASE""packages/apps/"; #Add a shim to install Fennec DOS without actually including the large APK
|
||||
gpgVerifyDirectory "$DOS_PREBUILT_APPS""android_vendor_FDroid_PrebuiltApps/packages";
|
||||
cp -r "$DOS_PREBUILT_APPS""android_vendor_FDroid_PrebuiltApps/." "$DOS_BUILD_BASE""vendor/fdroid_prebuilt/"; #Add the prebuilt apps
|
||||
cp -r "$DOS_PATCHES_COMMON""android_vendor_divested/." "$DOS_BUILD_BASE""vendor/divested/"; #Add our vendor files
|
||||
|
||||
|
@ -58,6 +58,7 @@ echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/a
|
||||
|
||||
#top dir
|
||||
cp -r "$DOS_PREBUILT_APPS""Fennec_DOS-Shim" "$DOS_BUILD_BASE""packages/apps/"; #Add a shim to install Fennec DOS without actually including the large APK
|
||||
gpgVerifyDirectory "$DOS_PREBUILT_APPS""android_vendor_FDroid_PrebuiltApps/packages";
|
||||
cp -r "$DOS_PREBUILT_APPS""android_vendor_FDroid_PrebuiltApps/." "$DOS_BUILD_BASE""vendor/fdroid_prebuilt/"; #Add the prebuilt apps
|
||||
cp -r "$DOS_PATCHES_COMMON""android_vendor_divested/." "$DOS_BUILD_BASE""vendor/divested/"; #Add our vendor files
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user