summaryrefslogtreecommitdiff
path: root/build/prepare-install-package.sh
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-12-04 20:25:53 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-12-04 20:25:53 -0500
commitcc35dbdb3d1fe0a82557857a72d842f1217812c2 (patch)
treec7167ad6f25dcaa429c3fb6852351a60520e90ea /build/prepare-install-package.sh
parentc80d07fddfffe4fd3f8fa69bf6cab6374eec992d (diff)
downloadSMAPI-cc35dbdb3d1fe0a82557857a72d842f1217812c2.tar.gz
SMAPI-cc35dbdb3d1fe0a82557857a72d842f1217812c2.tar.bz2
SMAPI-cc35dbdb3d1fe0a82557857a72d842f1217812c2.zip
fix self-contained install on Windows
Diffstat (limited to 'build/prepare-install-package.sh')
-rwxr-xr-xbuild/prepare-install-package.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/build/prepare-install-package.sh b/build/prepare-install-package.sh
index 07dae217..39575c4c 100755
--- a/build/prepare-install-package.sh
+++ b/build/prepare-install-package.sh
@@ -97,11 +97,10 @@ for folder in ${folders[@]}; do
rm -rf "$internalPath/assets"
# runtime config for SMAPI
- if [ $folder == "linux" ] || [ $folder == "macOS" ]; then
- cp "$installAssets/runtimeconfig.unix.json" "$bundlePath/StardewModdingAPI.runtimeconfig.json"
- else
- cp "$installAssets/runtimeconfig.$folder.json" "$bundlePath/StardewModdingAPI.runtimeconfig.json"
- fi
+ # This is identical to the one generated by the build, except that the min runtime version is
+ # set to 5.0.0 (instead of whatever version it was built with) and rollForward is set to latestMinor instead of
+ # minor.
+ cp "$installAssets/runtimeconfig.json" "$bundlePath/StardewModdingAPI.runtimeconfig.json"
# installer DLL config
if [ $folder == "windows" ]; then