You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

60 lines
2.3 KiB

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