AMPTemplates/valheimupdates.json
2023-04-07 08:21:33 +10:00

87 lines
3.2 KiB
JSON

[
{
"UpdateStageName": "SteamCMD Download",
"UpdateSourcePlatform": "All",
"UpdateSource": "SteamCMD",
"UpdateSourceData": "896660",
"UpdateSourceArgs":"892970",
"UpdateSourceVersion": "{{Stream}}"
},
{
"UpdateStageName": "Update Saves Directory - Windows",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "Executable",
"UpdateSourceData": "cmd.exe",
"UpdateSourceArgs": "/C move {{$FullBaseDir}}\\Data {{$FullBaseDir}}\\Saves"
},
{
"UpdateStageName": "Update Saves Directory - Linux",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "Executable",
"UpdateSourceData": "/bin/bash",
"UpdateSourceArgs": "-c \"mv {{$FullBaseDir}}/Data/ {{$FullBaseDir}}/Saves/\""
},
{
"UpdateStageName": "Fetch BepInEx from Thunderstore",
"UpdateSourcePlatform": "All",
"UpdateSource": "FetchURL",
"UpdateSourceData": "https://valheim.thunderstore.io/package/download/denikson/BepInExPack_Valheim/5.4.2102/",
"UpdateSourceArgs": "denikson-BepInExPack_Valheim-5.4.2102.zip",
"UpdateSourceConditionSetting": "bepinex_install",
"UpdateSourceConditionValue": "true",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true
},
{
"UpdateStageName": "BepInEx Copy",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "Executable",
"UpdateSourceData": "cmd.exe",
"UpdateSourceArgs": "/C xcopy /E /Y /I Valheim\\896660\\BepInExPack_Valheim\\* Valheim\\896660\\ && rmdir /Q /S Valheim\\896660\\BepInExPack_Valheim",
"UpdateSourceConditionSetting": "bepinex_install",
"UpdateSourceConditionValue": "true"
},
{
"UpdateStageName": "BepInEx Copy",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "Executable",
"UpdateSourceData": "/bin/bash",
"UpdateSourceArgs": "-c \"cp -rf ./Valheim/896660/BepInExPack_Valheim/* ./Valheim/896660/ && rm -rf ./Valheim/896660/BepInExPack_Valheim/\"",
"UpdateSourceConditionSetting": "bepinex_install",
"UpdateSourceConditionValue": "true"
},
{
"UpdateStageName": "Fetch ValheimPlus from Github - Windows",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "GithubRelease",
"UpdateSourceArgs": "valheimPlus/ValheimPlus",
"UpdateSourceData": "WindowsServer.zip",
"UpdateSourceConditionSetting": "valheim_plus_install",
"UpdateSourceConditionValue": "true",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true
},
{
"UpdateStageName": "Fetch ValheimPlus from Github - Linux",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "GithubRelease",
"UpdateSourceArgs": "valheimPlus/ValheimPlus",
"UpdateSourceData": "UnixServer.zip",
"UpdateSourceConditionSetting": "valheim_plus_install",
"UpdateSourceConditionValue": "true",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true
},
{
"UpdateStageName": "Settings File Download",
"UpdateSourcePlatform": "All",
"UpdateSource": "FetchURL",
"UpdateSourceData": "https://raw.githubusercontent.com/valheimPlus/ValheimPlus/development/valheim_plus.cfg",
"UpdateSourceTarget": "{{$FullBaseDir}}/BepInEx/config",
"OverwriteExistingFiles": false,
"UpdateSourceConditionSetting": "valheim_plus_install",
"UpdateSourceConditionValue": "true"
}
]