From d5a14c74a842f06df272467d58b5661dd707da86 Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Tue, 31 Oct 2017 22:45:38 +1000 Subject: [PATCH] Add appbranch setting Use `appbranch=halloween` for example to have updates check the `halloween` branch instead of the `public` branch. --- tools/arkmanager | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/arkmanager b/tools/arkmanager index bc99f6d..3298ea4 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -633,7 +633,7 @@ function getStagingVersion(){ # function getAvailableVersion(){ 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(){ appinfo="$(runSteamCMD +app_info_print "$appid" +quit)" 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 return 1 fi