mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-27 08:48:27 +00:00
Add appbranch setting
Use `appbranch=halloween` for example to have updates check the `halloween` branch instead of the `public` branch.
This commit is contained in:
parent
40f33e2c51
commit
d5a14c74a8
@ -633,7 +633,7 @@ function getStagingVersion(){
|
|||||||
#
|
#
|
||||||
function getAvailableVersion(){
|
function getAvailableVersion(){
|
||||||
rm -f "$steamcmd_appinfocache"
|
rm -f "$steamcmd_appinfocache"
|
||||||
runSteamCMD +app_info_update 1 +app_info_print "$appid" +quit | while read name val; do if [ "${name}" == "{" ]; then parseSteamACF ".depots.branches.public" "buildid"; break; fi; done
|
runSteamCMD +app_info_update 1 +app_info_print "$appid" +quit | while read name val; do if [ "${name}" == "{" ]; then parseSteamACF ".depots.branches.${appbranch:-public}" "buildid"; break; fi; done
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -733,7 +733,10 @@ function getSavedArksDirectory(){
|
|||||||
function checkUpdateManifests(){
|
function checkUpdateManifests(){
|
||||||
appinfo="$(runSteamCMD +app_info_print "$appid" +quit)"
|
appinfo="$(runSteamCMD +app_info_print "$appid" +quit)"
|
||||||
while read depot manifest <&3; do
|
while read depot manifest <&3; do
|
||||||
newmanifest="$(echo "${appinfo}" | while read name val; do if [ "${name}" == "{" ]; then parseSteamACF ".depots.${depot}.manifests" "public"; break; fi; done)"
|
newmanifest="$(echo "${appinfo}" | while read name val; do if [ "${name}" == "{" ]; then parseSteamACF ".depots.${depot}.manifests" "${appbranch:-public}"; break; fi; done)"
|
||||||
|
if [[ -z "${newmanifest}" && "${appbranch:-public}" != "public" ]]; then
|
||||||
|
newmanifest="$(echo "${appinfo}" | while read name val; do if [ "${name}" == "{" ]; then parseSteamACF ".depots.${depot}.manifests" "public"; break; fi; done)"
|
||||||
|
fi
|
||||||
if [ "${newmanifest}" != "${manifest}" ]; then
|
if [ "${newmanifest}" != "${manifest}" ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user