diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-06 23:31:24 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-06 23:31:24 -0400 |
commit | 52a0231defb5bc65a4b2431610998045e0c98da6 (patch) | |
tree | de16e3e8c26ded47b9cdc6e891db3025cb9cd861 | |
parent | 7f5f222be559e39374a3b87eee07ed334edfe318 (diff) | |
download | SMAPI-52a0231defb5bc65a4b2431610998045e0c98da6.tar.gz SMAPI-52a0231defb5bc65a4b2431610998045e0c98da6.tar.bz2 SMAPI-52a0231defb5bc65a4b2431610998045e0c98da6.zip |
add error when running Windows installer on Linux/Mac
-rw-r--r-- | src/SMAPI.Installer/InteractiveInstaller.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/SMAPI.Installer/InteractiveInstaller.cs b/src/SMAPI.Installer/InteractiveInstaller.cs index 2b9dd95e..b4ed2c92 100644 --- a/src/SMAPI.Installer/InteractiveInstaller.cs +++ b/src/SMAPI.Installer/InteractiveInstaller.cs @@ -149,6 +149,15 @@ namespace StardewModdingApi.Installer Console.Title = $"SMAPI {new SemanticVersionImpl(this.GetType().Assembly.GetName().Version)} installer on {platform} {EnvironmentUtility.GetFriendlyPlatformName(platform)}"; Console.WriteLine(); +#if SMAPI_FOR_WINDOWS + if (platform == Platform.Linux || platform == Platform.Mac) + { + this.PrintError($"This is the installer for Windows. Run the 'install on {platform}.{(platform == Platform.Linux ? "sh" : "command")}' file instead."); + Console.ReadLine(); + return; + } +#endif + /**** ** read command-line arguments ****/ |