From 93dcf1f1e18441a6eeb585d0d77888248370f429 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 10 Jan 2017 17:13:58 -0500 Subject: [PATCH] remove support custom target platform (never used) --- README.md | 24 +----------------------- build/smapi.targets | 17 +++++------------ package.nuspec | 2 +- 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 ` - Windows - - ``` - -* _or_ by setting one of these compile constant: `GAME_PLATFORM_LINUX`, `GAME_PLATFORM_MAC`, or - `GAME_PLATFORM_WINDOWS`. - * 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. - * In MonoDevelop: right-click on the project and choose _Options_. Click the - _Build ยป Compiler_ tab, and enter the constants into the _Define Symbols_ field. - ## 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 #######--> - - - Linux - Mac - Windows - - - Linux - Mac - Windows + Linux + Mac + Windows - C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley - C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley + C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley + C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\GOG.com\Games\1453375253', 'PATH', null, RegistryView.Registry32)) $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null, RegistryView.Registry64, RegistryView.Registry32)) diff --git a/package.nuspec b/package.nuspec index 54894d90..5c1f5d1b 100644 --- a/package.nuspec +++ b/package.nuspec @@ -11,7 +11,7 @@ https://github.com/Pathoschild/Stardew.ModBuildConfig https://raw.githubusercontent.com/Pathoschild/Stardew.ModBuildConfig/1.3/assets/nuget-icon.png Automates the build configuration for a crossplatform Stardew Valley mod that uses SMAPI. - Fix game path detection on 32-bit Windows; remove support for SilVerPLuM (discontinued). + Fix game path detection on 32-bit Windows; remove support for SilVerPLuM (discontinued); removed support for overriding target platform (never used).