2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

put ogapps server path into var

This commit is contained in:
Christopher Roy Bratusek 2020-01-31 18:04:53 +01:00
parent bc4dd3c59b
commit 520548c0c1
2 changed files with 9 additions and 7 deletions

View File

@ -60,7 +60,8 @@
* Blockada (4.5.1) * Blockada (4.5.1)
* Bromite System WebView (79.0.3945.139) * Bromite System WebView (79.0.3945.139)
* F-Droid (1.8-alpha1) * F-Droid (1.8-alpha1)
* New Pipe (0.18.1) * New Pipe (0.18.2)
* Open Keychain (5.5)
* Privacy Browser (3.3) * Privacy Browser (3.3)
* QKSMS (3.8.0) * QKSMS (3.8.0)
* Simple Calendar Pro (6.8.3) * Simple Calendar Pro (6.8.3)

View File

@ -9,6 +9,7 @@ repo_guardian="https://guardianproject.info/fdroid/repo"
repo_microg="https://microg.org/fdroid/repo" repo_microg="https://microg.org/fdroid/repo"
repo_nanolx="https://nanolx.org/fdroid/repo" repo_nanolx="https://nanolx.org/fdroid/repo"
repo_bromite="https://fdroid.bromite.org/fdroid/repo" repo_bromite="https://fdroid.bromite.org/fdroid/repo"
repo_ogapps="https://gitlab.opengapps.org/opengapps"
# check dependencies # check dependencies
for dep in gawk curl sha256sum jq gzip; do for dep in gawk curl sha256sum jq gzip; do
@ -280,22 +281,22 @@ grab_apk_from_ogapps () {
# use SDK 19 Calendar Syncadapter for SDK 19 # use SDK 19 Calendar Syncadapter for SDK 19
# use SDK 21 Calendar Syncadapter for SDK 21 - 29 # use SDK 21 Calendar Syncadapter for SDK 21 - 29
if [ "${4}" -eq 19 ]; then if [ "${4}" -eq 19 ]; then
local apk_url="https://gitlab.opengapps.org/opengapps/all/raw/master/${2}/${1}/15/nodpi/2015080710.apk" local apk_url="${repo_ogapps}/all/raw/master/${2}/${1}/15/nodpi/2015080710.apk"
else else
local apk_url="https://gitlab.opengapps.org/opengapps/all/raw/master/${2}/${1}/21/nodpi/2016184095.apk" local apk_url="all/raw/master/${2}/${1}/21/nodpi/2016184095.apk"
fi fi
;; ;;
"com.google.android.syncadapters.contacts" ) "com.google.android.syncadapters.contacts" )
local apk_url="https://gitlab.opengapps.org/opengapps/all/raw/master/${2}/${1}/${4}/nodpi/${4}.apk" local apk_url="${repo_ogapps}/all/raw/master/${2}/${1}/${4}/nodpi/${4}.apk"
;; ;;
"com.google.android.backuptransport" ) "com.google.android.backuptransport" )
# Use SDK 28 Backuptransport on SDK 29 aswell # Use SDK 28 Backuptransport on SDK 29 aswell
if [ "${4}" -eq 29 ]; then if [ "${4}" -eq 29 ]; then
local apk_url="https://gitlab.opengapps.org/opengapps/all/raw/master/${2}/${1}/28/nodpi/28.apk" local apk_url="${repo_ogapps}/all/raw/master/${2}/${1}/28/nodpi/28.apk"
else else
local apk_url="https://gitlab.opengapps.org/opengapps/all/raw/master/${2}/${1}/${4}/nodpi/${4}.apk" local apk_url="${repo_ogapps}/all/raw/master/${2}/${1}/${4}/nodpi/${4}.apk"
fi fi
;; ;;
esac esac
@ -322,7 +323,7 @@ grab_lib_from_ogapps () {
arm64 | x86_64 ) LIBD=lib64 ;; arm64 | x86_64 ) LIBD=lib64 ;;
esac esac
local lib_url="https://gitlab.opengapps.org/opengapps/${3}/raw/master/${LIBD}/${2}/${1}?inline=false" local lib_url="${repo_ogapps}/${3}/raw/master/${LIBD}/${2}/${1}?inline=false"
local swp_dest="${appsfolder[8]}/${3}" local swp_dest="${appsfolder[8]}/${3}"
if [[ "${4}" == "true" ]]; then if [[ "${4}" == "true" ]]; then