summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-05-02 21:51:06 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-05-02 21:51:06 -0400
commitff55901025365a342e0794df86f6122603e614c8 (patch)
treece8d6cb49f12590f404fb4cb0c30a3b03c4451bb /build
parent8425f53b7d6a840051b0f34c29f266ab3b5e7529 (diff)
downloadSMAPI-ff55901025365a342e0794df86f6122603e614c8.tar.gz
SMAPI-ff55901025365a342e0794df86f6122603e614c8.tar.bz2
SMAPI-ff55901025365a342e0794df86f6122603e614c8.zip
compile separate Linux/Mac installer to avoid WMI reference errors (#485)
Diffstat (limited to 'build')
-rw-r--r--build/prepare-install-package.targets3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/prepare-install-package.targets b/build/prepare-install-package.targets
index 8410f60e..d67d271f 100644
--- a/build/prepare-install-package.targets
+++ b/build/prepare-install-package.targets
@@ -18,12 +18,13 @@
<RemoveDir Directories="$(PackagePath)" />
<!-- copy installer files -->
- <Copy SourceFiles="$(TargetDir)\$(TargetName).exe" DestinationFiles="$(PackagePath)\install.exe" />
+ <Copy Condition="$(OS) == 'Windows_NT'" SourceFiles="$(TargetDir)\$(TargetName).exe" DestinationFiles="$(PackagePath)\install.exe" />
<Copy SourceFiles="$(TargetDir)\readme.txt" DestinationFiles="$(PackagePath)\README.txt" />
<Copy Condition="$(OS) != 'Windows_NT'" SourceFiles="$(TargetDir)\unix-launcher.sh" DestinationFiles="$(PackageInternalPath)\Mono\StardewModdingAPI" />
<Copy Condition="$(OS) != 'Windows_NT'" SourceFiles="$(TargetDir)\unix-install.sh" DestinationFiles="$(PackagePath)\install.sh" />
<!-- copy SMAPI files for Mono -->
+ <Copy Condition="$(OS) != 'Windows_NT'" SourceFiles="$(TargetDir)\$(TargetName).exe" DestinationFiles="$(PackageInternalPath)\Mono\install.exe" />
<Copy Condition="$(OS) != 'Windows_NT'" SourceFiles="$(CompiledSmapiPath)\Mono.Cecil.dll" DestinationFolder="$(PackageInternalPath)\Mono" />
<Copy Condition="$(OS) != 'Windows_NT'" SourceFiles="$(CompiledSmapiPath)\Newtonsoft.Json.dll" DestinationFolder="$(PackageInternalPath)\Mono" />
<Copy Condition="$(OS) != 'Windows_NT'" SourceFiles="$(CompiledSmapiPath)\StardewModdingAPI.exe" DestinationFolder="$(PackageInternalPath)\Mono" />