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

grab NewPipe from official NewPipe repo instead of Github

This commit is contained in:
Christopher Roy Bratusek 2020-12-28 13:10:59 +01:00
parent 798502daff
commit e37256b6e6
4 changed files with 12 additions and 3 deletions

View File

@ -23,7 +23,7 @@
* Full package
* move from `Blokada` v4 to v5
* no longer ship `XDA Labs`
* grab `NewPipe` from Github instead of F-Droid
* grab `NewPipe` from NewPipe repo instead of F-Droid
* F-Droid build is outdated
* grab `SmartPack Kernel Manager` from F-Droid instead of Github

View File

@ -59,6 +59,8 @@ fd_TWIDERE=(fdroid org.mariotaku.twidere app Twidere)
gd_TORBROWSER=(guardian org.torproject.torbrowser app TorBrowser)
np_NEWPIPE=(newpipe org.schabi.newpipe app NewPipe)
###
# Google Sync Adapters
###
@ -72,7 +74,6 @@ og_BTRANSP=(com.google.android.backuptransport priv-app GoogleBackupTransport)
###
gh_AMAZE=(TeamAmaze/AmazeFileManager app Amaze)
gh_NEWPIPE=(TeamNewPipe/NewPipe app NewPipe)
###
# GitLab

View File

@ -10,6 +10,7 @@ repo_microg="https://microg.org/fdroid/repo"
repo_nanolx="https://nanolx.org/fdroid/repo"
repo_bromite="https://fdroid.bromite.org/fdroid/repo"
repo_ogapps="https://gitlab.opengapps.org/opengapps"
repo_newpipe="https://archive.newpipe.net/fdroid/repo"
useragent='Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0'
@ -186,6 +187,9 @@ update_indices () {
echo " ++ Bromite"
update_index "$repofolder/$(awk -F/ '{print $3}' <<< ${repo_bromite}).index-v1.jar" "${repo_bromite}"
echo " ++ NewPipe"
update_index "$repofolder/$(awk -F/ '{print $3}' <<< ${repo_newpipe}).index-v1.jar" "${repo_newpipe}"
}
grab_apk_from_repo () {
@ -210,6 +214,10 @@ grab_apk_from_repo () {
local repo=${repo_bromite}
local repo_p="Bromite"
;;
newpipe )
local repo=${repo_newpipe}
local repo_p="NewPipe"
;;
esac
local domain="$(awk -F/ '{print $3}' <<< ${repo})"

View File

@ -120,10 +120,10 @@ grab_apps () {
grab_apk_from_repo ${fd_TERMUX[@]}
grab_apk_from_repo ${fd_TWIDERE[@]}
grab_apk_from_repo ${gd_TORBROWSER[@]}
grab_apk_from_repo ${np_NEWPIPE[@]}
# GitHub
grab_apk_from_github ${gh_AMAZE[@]}
grab_apk_from_github ${gh_NEWPIPE[@]}
# GitLab
grab_apk_from_gitlab ${gl_AURORAWARDEN[@]}