2015-06-30 19:40:11 +00:00
|
|
|
#!/bin/sh
|
2015-07-31 18:44:59 +00:00
|
|
|
set -e
|
2012-01-03 01:49:08 +00:00
|
|
|
|
2015-06-30 19:40:11 +00:00
|
|
|
BASEDIR=$( dirname $0 )
|
2019-11-13 23:03:06 +00:00
|
|
|
PREBUILT_PATH="$BASEDIR/prebuilt/common/apps"
|
|
|
|
REPO_URL_FDROID="https://f-droid.org/repo"
|
|
|
|
REPO_URL_GUARDIAN="https://guardianproject.info/fdroid/repo"
|
2019-11-14 20:27:32 +00:00
|
|
|
REPO_URL_BROMITE="https://fdroid.bromite.org/fdroid/repo"
|
2012-01-03 01:49:08 +00:00
|
|
|
|
2019-11-13 23:03:06 +00:00
|
|
|
mkdir -p $PREBUILT_PATH
|
2014-07-02 18:17:48 +00:00
|
|
|
|
2019-11-13 23:03:06 +00:00
|
|
|
function getPrebuild() {
|
|
|
|
repo="$1"
|
|
|
|
name="$2"
|
|
|
|
full_name="$3"
|
|
|
|
version="$4"
|
|
|
|
version_string=""
|
|
|
|
if [[ ! -z $version ]]; then version_string="_$version"; fi
|
|
|
|
case "$repo" in
|
|
|
|
"guardian") repo_url=$REPO_URL_GUARDIAN ;;
|
2019-11-14 20:27:32 +00:00
|
|
|
"bromite") repo_url=$REPO_URL_BROMITE ;;
|
2019-11-13 23:03:06 +00:00
|
|
|
* ) repo_url=$REPO_URL_FDROID ;;
|
|
|
|
esac
|
|
|
|
local_app_path="$PREBUILT_PATH/$name.apk"
|
|
|
|
remote_app_path="$repo_url/${full_name}${version_string}.apk"
|
|
|
|
echo -e "Downloading app $name"
|
|
|
|
curl -s \
|
|
|
|
-L -o "$local_app_path" \
|
|
|
|
-O -L "$remote_app_path"
|
|
|
|
curl -s \
|
|
|
|
-L -o "$local_app_path.asc" \
|
|
|
|
-O -L "$remote_app_path.asc"
|
|
|
|
echo -e "Verifying app $name"
|
|
|
|
gpg -q \
|
|
|
|
--armor \
|
|
|
|
--verify \
|
|
|
|
"$local_app_path.asc" \
|
|
|
|
"$local_app_path"
|
|
|
|
}
|
|
|
|
|
|
|
|
getPrebuild fdroid FDroid org.fdroid.fdroid 1007051
|
2019-11-13 23:06:04 +00:00
|
|
|
|
2020-04-22 16:15:15 +00:00
|
|
|
getPrebuild fdroid Conversations eu.siacs.conversations 367
|
|
|
|
getPrebuild fdroid OpenKeyChain org.sufficientlysecure.keychain 55000
|
|
|
|
getPrebuild fdroid K9 com.fsck.k9 27009
|
2019-11-13 23:06:04 +00:00
|
|
|
getPrebuild fdroid DocumentViewer org.sufficientlysecure.viewer 2817
|
2020-04-22 16:15:15 +00:00
|
|
|
getPrebuild fdroid VLC org.videolan.vlc 13021108
|
2019-11-13 23:06:04 +00:00
|
|
|
getPrebuild fdroid WifiPrivacyPolice be.uhasselt.privacypolice 13
|
2020-04-22 16:15:15 +00:00
|
|
|
getPrebuild fdroid Linphone org.linphone 4230
|
|
|
|
getPrebuild fdroid SimpleGallery com.simplemobiletools.gallery.pro 302
|
|
|
|
getPrebuild fdroid PrivacyBrowser com.stoutner.privacybrowser.standard 49
|
|
|
|
getPrebuild fdroid Silence org.smssecure.smssecure 211
|
2019-11-16 00:30:26 +00:00
|
|
|
getPrebuild fdroid SnooperStopper cz.eutopia.snooperstopper 4
|
2019-12-02 02:16:38 +00:00
|
|
|
getPrebuild fdroid BarcodeScanner com.google.zxing.client.android 108
|
2019-11-13 23:06:04 +00:00
|
|
|
|
2020-04-22 16:15:15 +00:00
|
|
|
getPrebuild guardian TorBrowser tor-browser-9.0.9-android-armv7-multi
|
2019-11-15 23:35:51 +00:00
|
|
|
getPrebuild guardian Orbot Orbot-16.1.2-RC-2-tor-0.4.1.5-rc-fullperm-armeabi-v7a-release
|
2020-04-22 16:15:15 +00:00
|
|
|
getPrebuild bromite WebView rel_81.0.4044.106_arm_SystemWebView
|
|
|
|
|