summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md24
-rw-r--r--build/smapi.targets17
-rw-r--r--package.nuspec2
3 files changed, 7 insertions, 36 deletions
diff --git a/README.md b/README.md
index a02f6f97..bd6feaa2 100644
--- a/README.md
+++ b/README.md
@@ -48,29 +48,6 @@ If you customised where Stardew Valley is installed, you can specify where it is
The configuration will check your custom path first, then fall back to the default paths. (That way
you can still compile it normally on a different computer.)
-### Target platform
-By default the build configuration will target your current platform (e.g. Linux, Mac, or Windows).
-If you're compiling it for a different platform (and have the required dependencies installed), you
-can manually override the platform detection.
-
-You can define it...
-
-* in your `.csproj` (anywhere before the added `<Import` line). Valid values are `Linux`, `Mac`, or
- `Windows`.
-
- ```
- <PropertyGroup>
- <GamePlatform>Windows</GamePlatform>
- </PropertyGroup>
- ```
-
-* _or_ by setting one of these compile constant: `GAME_PLATFORM_LINUX`, `GAME_PLATFORM_MAC`, or
- `GAME_PLATFORM_WINDOWS`.
- * <small>In Visual Studio: right-click on the project and choose _Properties_. Click the _Build_
- tab, and enter the constants into the _Conditional compilation symbols_ field.</small>
- * <small>In MonoDevelop: right-click on the project and choose _Options_. Click the
- _Build ยป Compiler_ tab, and enter the constants into the _Define Symbols_ field.</small>
-
## Simplify mod development
### Package your mod into the game directory automatically
During development, it's helpful to have the mod files packaged into your `Mods` directory automatically each time you build. To do that:
@@ -105,6 +82,7 @@ This will deploy your mod files into the game directory, launch SMAPI, and attac
1.3:
* Fixed non-default game paths on 32-bit Windows.
* Removed support for SilVerPLuM (discontinued).
+* Removed support for overriding the target platform (never used).
1.2:
* Added support for non-default game paths on Windows by reading the registry.
diff --git a/build/smapi.targets b/build/smapi.targets
index 93588445..3c6717da 100644
--- a/build/smapi.targets
+++ b/build/smapi.targets
@@ -3,16 +3,9 @@
## select target OS
#######-->
<PropertyGroup>
- <!-- from override -->
- <GamePlatform Condition="$(GamePlatform) != 'Linux' AND $(GamePlatform) != 'Mac' AND $(GamePlatform) != 'Windows'"></GamePlatform>
- <GamePlatform Condition="$(DefineConstants.Contains('GAME_PLATFORM_LINUX'))">Linux</GamePlatform>
- <GamePlatform Condition="$(DefineConstants.Contains('GAME_PLATFORM_MAC'))">Mac</GamePlatform>
- <GamePlatform Condition="$(DefineConstants.Contains('GAME_PLATFORM_WINDOWS'))">Windows</GamePlatform>
-
- <!-- from OS -->
- <GamePlatform Condition="$(GamePlatform) == '' AND $(OS) == 'Unix'">Linux</GamePlatform>
- <GamePlatform Condition="$(GamePlatform) == '' AND $(OS) == 'OSX'">Mac</GamePlatform>
- <GamePlatform Condition="$(GamePlatform) == '' AND $(OS) == 'Windows_NT'">Windows</GamePlatform>
+ <GamePlatform Condition="$(OS) == 'Unix'">Linux</GamePlatform>
+ <GamePlatform Condition="$(OS) == 'OSX'">Mac</GamePlatform>
+ <GamePlatform Condition="$(OS) == 'Windows_NT'">Windows</GamePlatform>
</PropertyGroup>
<!--######
@@ -27,8 +20,8 @@
<GamePath Condition="!Exists('$(GamePath)')">$(HOME)/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS</GamePath>
<!-- Windows -->
- <GamePath Condition="!Exists('$(GamePath)' )">C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley</GamePath>
- <GamePath Condition="!Exists('$(GamePath)' )">C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley</GamePath>
+ <GamePath Condition="!Exists('$(GamePath)')">C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley</GamePath>
+ <GamePath Condition="!Exists('$(GamePath)')">C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley</GamePath>
<GamePath Condition="!Exists('$(GamePath)') AND '$(GamePlatform)' == 'Windows'">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\GOG.com\Games\1453375253', 'PATH', null, RegistryView.Registry32))</GamePath>
<GamePath Condition="!Exists('$(GamePath)') AND '$(GamePlatform)' == 'Windows'">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null, RegistryView.Registry64, RegistryView.Registry32))</GamePath>
</PropertyGroup>
diff --git a/package.nuspec b/package.nuspec
index 54894d90..5c1f5d1b 100644
--- a/package.nuspec
+++ b/package.nuspec
@@ -11,7 +11,7 @@
<projectUrl>https://github.com/Pathoschild/Stardew.ModBuildConfig</projectUrl>
<iconUrl>https://raw.githubusercontent.com/Pathoschild/Stardew.ModBuildConfig/1.3/assets/nuget-icon.png</iconUrl>
<description>Automates the build configuration for a crossplatform Stardew Valley mod that uses SMAPI.</description>
- <releaseNotes>Fix game path detection on 32-bit Windows; remove support for SilVerPLuM (discontinued).</releaseNotes>
+ <releaseNotes>Fix game path detection on 32-bit Windows; remove support for SilVerPLuM (discontinued); removed support for overriding target platform (never used).</releaseNotes>
</metadata>
<files>
<file src="build/smapi.targets" target="build/Pathoschild.Stardew.ModBuildConfig.targets" />