summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-31 21:23:44 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-31 21:23:44 -0400
commitbf960ce283d794a11885a5fde6f123a4e6827853 (patch)
tree00986f30b162bc511f3e010c54a0057dffdddc81 /build
parent9992915f565578949cad8d9bb8ceb360e0db5c85 (diff)
downloadSMAPI-bf960ce283d794a11885a5fde6f123a4e6827853.tar.gz
SMAPI-bf960ce283d794a11885a5fde6f123a4e6827853.tar.bz2
SMAPI-bf960ce283d794a11885a5fde6f123a4e6827853.zip
add backwards compatibility for mods using now-unused dependencies
Diffstat (limited to 'build')
-rw-r--r--build/common.targets5
-rwxr-xr-xbuild/unix/prepare-install-package.sh5
-rw-r--r--build/windows/prepare-install-package.ps15
3 files changed, 15 insertions, 0 deletions
diff --git a/build/common.targets b/build/common.targets
index b2441af8..10b94d7e 100644
--- a/build/common.targets
+++ b/build/common.targets
@@ -70,6 +70,11 @@
<!-- .NET dependencies -->
<Copy SourceFiles="$(TargetDir)\System.Management.dll" DestinationFolder="$(GamePath)\smapi-internal" Condition="$(OS) == 'Windows_NT'" />
+
+ <!-- Legacy .NET dependencies (remove in SMAPI 4.0.0) -->
+ <Copy SourceFiles="$(TargetDir)\System.Configuration.ConfigurationManager.dll" DestinationFolder="$(GamePath)\smapi-internal" />
+ <Copy SourceFiles="$(TargetDir)\System.Runtime.Caching.dll" DestinationFolder="$(GamePath)\smapi-internal" />
+ <Copy SourceFiles="$(TargetDir)\System.Security.Permissions.dll" DestinationFolder="$(GamePath)\smapi-internal" />
</Target>
<Target Name="CopyDefaultMods" Condition="'$(MSBuildProjectName)' == 'SMAPI.Mods.ConsoleCommands' OR '$(MSBuildProjectName)' == 'SMAPI.Mods.ErrorHandler' OR '$(MSBuildProjectName)' == 'SMAPI.Mods.SaveBackup'">
diff --git a/build/unix/prepare-install-package.sh b/build/unix/prepare-install-package.sh
index 01c3a0ec..01cd2080 100755
--- a/build/unix/prepare-install-package.sh
+++ b/build/unix/prepare-install-package.sh
@@ -151,6 +151,11 @@ for folder in ${folders[@]}; do
cp "$smapiBin/System.Management.dll" "$bundlePath/smapi-internal"
fi
+ # copy legacy .NET dependencies (remove in SMAPI 4.0.0)
+ cp "$smapiBin/System.Configuration.ConfigurationManager.dll" "$bundlePath/smapi-internal"
+ cp "$smapiBin/System.Runtime.Caching.dll" "$bundlePath/smapi-internal"
+ cp "$smapiBin/System.Security.Permissions.dll" "$bundlePath/smapi-internal"
+
# copy bundled mods
for modName in ${bundleModNames[@]}; do
fromPath="src/SMAPI.Mods.$modName/bin/$buildConfig/$runtime/publish"
diff --git a/build/windows/prepare-install-package.ps1 b/build/windows/prepare-install-package.ps1
index 6731486b..7e3c6c86 100644
--- a/build/windows/prepare-install-package.ps1
+++ b/build/windows/prepare-install-package.ps1
@@ -172,6 +172,11 @@ foreach ($folder in $folders) {
cp "$smapiBin/System.Management.dll" "$bundlePath/smapi-internal"
}
+ # copy legacy .NET dependencies (remove in SMAPI 4.0.0)
+ cp "$smapiBin/System.Configuration.ConfigurationManager.dll" "$bundlePath/smapi-internal"
+ cp "$smapiBin/System.Runtime.Caching.dll" "$bundlePath/smapi-internal"
+ cp "$smapiBin/System.Security.Permissions.dll" "$bundlePath/smapi-internal"
+
# copy bundled mods
foreach ($modName in $bundleModNames) {
$fromPath = "src/SMAPI.Mods.$modName/bin/$buildConfig/$runtime/publish"