summaryrefslogtreecommitdiff
path: root/build/prepare-install-package.targets
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-11-19 15:41:35 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-11-19 15:41:35 -0500
commit4cd9eda1591c3908bf80b60c2902491a7595ee27 (patch)
tree89029142622f76a5b4cde4adb6c98844f2f2b0c3 /build/prepare-install-package.targets
parent593723b7940ba72a786fc4c7366c56f9813d977b (diff)
parent5de81464cea4b70b68d1ed344b89a161f88bc213 (diff)
downloadSMAPI-4cd9eda1591c3908bf80b60c2902491a7595ee27.tar.gz
SMAPI-4cd9eda1591c3908bf80b60c2902491a7595ee27.tar.bz2
SMAPI-4cd9eda1591c3908bf80b60c2902491a7595ee27.zip
Merge branch 'develop' into stable
Diffstat (limited to 'build/prepare-install-package.targets')
-rw-r--r--build/prepare-install-package.targets7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/prepare-install-package.targets b/build/prepare-install-package.targets
index aeed101d..3a870bd2 100644
--- a/build/prepare-install-package.targets
+++ b/build/prepare-install-package.targets
@@ -7,7 +7,8 @@
-->
<Target Name="AfterBuild">
<PropertyGroup>
- <CompiledRootPath>$(SolutionDir)\..\bin\$(Configuration)</CompiledRootPath>
+ <RootPath>$(SolutionDir)\..</RootPath>
+ <CompiledRootPath>$(RootPath)\bin\$(Configuration)</CompiledRootPath>
<CompiledSmapiPath>$(CompiledRootPath)\SMAPI</CompiledSmapiPath>
<CompiledToolkitPath>$(CompiledRootPath)\SMAPI.Toolkit\net4.5</CompiledToolkitPath>
<PackagePath>$(SolutionDir)\..\bin\SMAPI installer</PackagePath>
@@ -53,6 +54,10 @@
<Copy Condition="$(OS) != 'Windows_NT'" SourceFiles="$(CompiledSmapiPath)\System.Numerics.dll" DestinationFolder="$(PackagePath)\bundle\smapi-internal" />
<Copy Condition="$(OS) != 'Windows_NT'" SourceFiles="$(CompiledSmapiPath)\System.Runtime.Caching.dll" DestinationFolder="$(PackagePath)\bundle\smapi-internal" />
+ <!-- fix errors on Linux/Mac (sample: https://log.smapi.io/mMdFUpgB) -->
+ <Copy Condition="$(OS) != 'Windows_NT'" SourceFiles="$(RootPath)\build\lib\System.Numerics.dll" DestinationFolder="$(PackagePath)\bundle\smapi-internal" />
+ <Copy Condition="$(OS) != 'Windows_NT'" SourceFiles="$(RootPath)\build\lib\System.Runtime.Caching.dll" DestinationFolder="$(PackagePath)\bundle\smapi-internal" />
+
<!-- fix Linux/Mac permissions -->
<Exec Condition="$(OS) != 'Windows_NT'" Command="chmod 755 &quot;$(PackagePath)\install on Linux.sh&quot;" />
<Exec Condition="$(OS) != 'Windows_NT'" Command="chmod 755 &quot;$(PackagePath)\install on Mac.command&quot;" />