From 737e2861c4a4150cbdbf7347cb755ebc2ec1b5c9 Mon Sep 17 00:00:00 2001 From: Geramie Kuba Date: Fri, 30 Dec 2022 09:21:52 -0700 Subject: [PATCH] Valheim - Changed update soruce for BepInEx (#261) * Changed update soruce for BepInEx * Fixed Update soruce for BepInEx * Added delete after extract * fixed typo * Really fixed the windows copy this time... --- valheimupdates.json | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/valheimupdates.json b/valheimupdates.json index 1251443..b712161 100644 --- a/valheimupdates.json +++ b/valheimupdates.json @@ -21,26 +21,34 @@ "UpdateSourceArgs": "-c \"mv {{$FullBaseDir}}/Data/ {{$FullBaseDir}}/Saves/\"" }, { - "UpdateStageName": "Fetch BepInEx from Github - Windows", - "UpdateSourcePlatform": "Windows", - "UpdateSource": "GithubRelease", - "UpdateSourceArgs": "BepInEx/BepInEx", - "UpdateSourceData": "BepInEx_x64_5.4.21.0.zip", + "UpdateStageName": "Fetch BepInEx from Thunderstore", + "UpdateSourcePlatform": "All", + "UpdateSource": "FetchURL", + "UpdateSourceData": "https://valheim.thunderstore.io/package/download/denikson/BepInExPack_Valheim/5.4.1901/", + "UpdateSourceArgs": "denikson-BepInExPack_Valheim-5.4.1901.zip", "UpdateSourceConditionSetting": "bepinex_install", "UpdateSourceConditionValue": "true", "UnzipUpdateSource": true, - "OverwriteExistingFiles": true + "OverwriteExistingFiles": true, + "DeleteAfterExtract": true }, { - "UpdateStageName": "Fetch BepInEx from Github - Linux", - "UpdateSourcePlatform": "Linux", - "UpdateSource": "GithubRelease", - "UpdateSourceArgs": "BepInEx/BepInEx", - "UpdateSourceData": "BepInEx_unix_5.4.21.0.zip", + "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", - "UnzipUpdateSource": true, - "OverwriteExistingFiles": true + "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",