mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-26 04:38:36 -06:00
fix: Better version management
This commit is contained in:
parent
6df146dd82
commit
8231d104fa
2 changed files with 3 additions and 3 deletions
|
@ -129,7 +129,7 @@ if [[ $2 != buildonly ]]; then
|
||||||
# shellcheck disable=SC2086,SC2046
|
# shellcheck disable=SC2086,SC2046
|
||||||
[[ $name == microg.apk ]] && download_link="https://github.com/$repo/releases/latest/download/$name" || download_link="$(echo "$data" | jq -r '.browser_download_url')"
|
[[ $name == microg.apk ]] && download_link="https://github.com/$repo/releases/latest/download/$name" || download_link="$(echo "$data" | jq -r '.browser_download_url')"
|
||||||
curl -sLo "$name" "$download_link"
|
curl -sLo "$name" "$download_link"
|
||||||
jq ".\"$basename\" = \"$version\"" versions-new.json >versions.json.tmp && mv versions.json.tmp versions-new.json
|
jq ".\"$basename\" = \"$version\"" versions-new.json >versions-tmp.json && mv versions-tmp.json versions-new.json
|
||||||
echo "Upgraded $basename from $version_present to $version"
|
echo "Upgraded $basename from $version_present to $version"
|
||||||
flag=true
|
flag=true
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -83,7 +83,7 @@ dl_yt() {
|
||||||
declare -r dl_url=$(dl_apkpure "$version" $appname youtube)
|
declare -r dl_url=$(dl_apkpure "$version" $appname youtube)
|
||||||
echo "YouTube version: $version"
|
echo "YouTube version: $version"
|
||||||
echo "downloaded from: [APKMirror - YouTube]($dl_url)"
|
echo "downloaded from: [APKMirror - YouTube]($dl_url)"
|
||||||
jq ".\"$apk\" = \"$version\"" versions.json >versions.json.tmp && mv versions.json.tmp versions.json
|
jq ".\"$apk\" = \"$version\"" versions.json >versions-tmp.json && mv versions-tmp.json versions-new.json
|
||||||
}
|
}
|
||||||
|
|
||||||
# Downloading youtube music
|
# Downloading youtube music
|
||||||
|
@ -106,7 +106,7 @@ dl_ytm() {
|
||||||
dl_apkpure "$version" $appname youtube-music
|
dl_apkpure "$version" $appname youtube-music
|
||||||
echo "YouTube Music version: $version"
|
echo "YouTube Music version: $version"
|
||||||
echo "downloaded from: [APKMirror - YouTube Music]($dl_url)"
|
echo "downloaded from: [APKMirror - YouTube Music]($dl_url)"
|
||||||
jq ".\"$apk\" = \"$version\"" versions.json >versions.json.tmp && mv versions.json.tmp versions.json
|
jq ".\"$apk\" = \"$version\"" versions.json >versions-tmp.json && mv versions-tmp.json versions-new.json
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get into the build directory
|
# Get into the build directory
|
||||||
|
|
Loading…
Reference in a new issue