summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-07-10 15:45:22 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-07-10 15:45:22 -0400
commit1fa12092c6130fbf8fb9c256f6c23e69c740a841 (patch)
tree82f15fb03ee629c1338a1e18c2250a1101d83206 /build
parent6a707a3e2d83a7f39eace0212fe62b7300ca5ee7 (diff)
downloadSMAPI-1fa12092c6130fbf8fb9c256f6c23e69c740a841.tar.gz
SMAPI-1fa12092c6130fbf8fb9c256f6c23e69c740a841.tar.bz2
SMAPI-1fa12092c6130fbf8fb9c256f6c23e69c740a841.zip
combine Linux/Mac paths
Mono may report Mac as either 'Unix' or 'OSX', and we don't really need to distinguish them for our purposes anyway.
Diffstat (limited to 'build')
-rw-r--r--build/smapi.targets9
1 files changed, 4 insertions, 5 deletions
diff --git a/build/smapi.targets b/build/smapi.targets
index 3a9c42c1..a544067b 100644
--- a/build/smapi.targets
+++ b/build/smapi.targets
@@ -9,14 +9,13 @@
## find platform + game path
#######-->
<Choose>
- <When Condition="$(OS) == 'Unix'">
+ <When Condition="$(OS) == 'Unix' OR $(OS) == 'OSX'">
<PropertyGroup>
+ <!-- Linux -->
<GamePath Condition="!Exists('$(GamePath)')">$(HOME)/GOG Games/Stardew Valley/game</GamePath>
<GamePath Condition="!Exists('$(GamePath)')">$(HOME)/.local/share/Steam/steamapps/common/Stardew Valley</GamePath>
- </PropertyGroup>
- </When>
- <When Condition="$(OS) == 'OSX'">
- <PropertyGroup>
+
+ <!-- Mac (may be 'Unix' or 'OSX') -->
<GamePath Condition="!Exists('$(GamePath)')">/Applications/Stardew Valley.app/Contents/MacOS</GamePath>
<GamePath Condition="!Exists('$(GamePath)')">$(HOME)/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS</GamePath>
</PropertyGroup>