53 lines
1.8 KiB
Bash
Executable File
53 lines
1.8 KiB
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
BASEDIR=$( dirname $0 )
|
|
PREBUILT_PATH="$BASEDIR/prebuilt/common/apps"
|
|
REPO_URL_FDROID="https://f-droid.org/repo"
|
|
REPO_URL_GUARDIAN="https://guardianproject.info/fdroid/repo"
|
|
|
|
mkdir -p $PREBUILT_PATH
|
|
|
|
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 ;;
|
|
* ) 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
|
|
|
|
getPrebuild fdroid Conversations eu.siacs.conversations 346
|
|
getPrebuild fdroid OpenKeyChain org.sufficientlysecure.keychain 54000
|
|
getPrebuild fdroid K9 com.fsck.k9 26000
|
|
getPrebuild fdroid DocumentViewer org.sufficientlysecure.viewer 2817
|
|
getPrebuild fdroid VLC org.videolan.vlc 13010707
|
|
getPrebuild fdroid WifiPrivacyPolice be.uhasselt.privacypolice 13
|
|
getPrebuild fdroid Linphone org.linphone 4200
|
|
getPrebuild fdroid SimpleGallery com.simplemobiletools.gallery.pro 271
|
|
getPrebuild fdroid PrivacyBrowser com.stoutner.privacybrowser.standard 46
|
|
getPrebuild fdroid Greyscale it.lucci.cm.greyscaletheme 115
|
|
|
|
getPrebuild guardian TorBrowser tor-browser-9.0-android-armv7-multi
|