Fixed GitLab downloading issue and updated gitignore

merge-requests/23/head
TanyaEleventhGoddess 5 years ago
parent 4590f1992e
commit 263d2b1923

15
.gitignore vendored

@ -1,15 +1,30 @@
BromiteWebView/system/
BromiteWebView/system
Full/gsync/K/
Full/gsync/K
Full/gsync/L/
Full/gsync/L
Full/gsync/M/
Full/gsync/M
Full/gsync/N/
Full/gsync/N
Full/gsync/O/
Full/gsync/O
Full/gsync/P/
Full/gsync/P
Full/gsync/common/
Full/gsync/common
Full/swipe/
Full/swipe
Full/system/app/
Full/system/app
Full/system/priv-app/
Full/system/priv-app
NanoDroid-*.zip
NanoDroid-*.zip.sha256
NanoDroid-*.zip.sha256.sig
OsmAnd/system/
OsmAnd/system
data/f-droid.org.index-v1.json
data/fdroid.bromite.org.index-v1.json
data/guardianproject.info.index-v1.json

@ -211,8 +211,9 @@ grab_apk_from_github () {
}
grab_apk_from_gitlab () {
APK_URL="https://gitlab.com$(curl -s -N "https://gitlab.com/${1}/-/tags" | \
gawk -F\" '/\.apk/{print $6 ; exit}')"
APK_URL=$(curl -s -N "https://gitlab.com/${1}/-/tags" | grep '.apk' | head -n 1)
APK_URL=${APK_URL##*a href=\"}
APK_URL="https://gitlab.com/${APK_URL%\">*}"
APK_DEST="${CWD}/Full/system/${2}/${3}"
rm -f "${APK_DEST}/${3}.apk.gz"

Loading…
Cancel
Save