mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-10-31 09:20:23 +00:00
build-package: fix downloading APK from GitHub with release tag has multiple
This commit is contained in:
parent
e121049bae
commit
1a1ae9f609
@ -276,7 +276,7 @@ grab_apk_from_url () {
|
||||
|
||||
grab_apk_from_github () {
|
||||
[ "${BP_DEBUG}" = '1' ] && debug_message normal "curl ${curl_opts} -s -N \"https://api.github.com/repos/${1}/releases\""
|
||||
local apk_url="$(curl -A "${useragent}" -s "https://api.github.com/repos/${1}/releases/latest" | jq -r '.assets[].browser_download_url')"
|
||||
local apk_url="$(curl -A "${useragent}" -s "https://api.github.com/repos/${1}/releases/latest" | jq -r '.assets[0].browser_download_url')"
|
||||
local apk_dest="${appsfolder[2]}/${2}/${3}"
|
||||
|
||||
download_apk_common "${apk_dest}" "${3}" "${apk_url}" github
|
||||
|
Loading…
Reference in New Issue
Block a user