summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer/InteractiveInstaller.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-05-06 23:31:24 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-05-06 23:31:24 -0400
commit52a0231defb5bc65a4b2431610998045e0c98da6 (patch)
treede16e3e8c26ded47b9cdc6e891db3025cb9cd861 /src/SMAPI.Installer/InteractiveInstaller.cs
parent7f5f222be559e39374a3b87eee07ed334edfe318 (diff)
downloadSMAPI-52a0231defb5bc65a4b2431610998045e0c98da6.tar.gz
SMAPI-52a0231defb5bc65a4b2431610998045e0c98da6.tar.bz2
SMAPI-52a0231defb5bc65a4b2431610998045e0c98da6.zip
add error when running Windows installer on Linux/Mac
Diffstat (limited to 'src/SMAPI.Installer/InteractiveInstaller.cs')
-rw-r--r--src/SMAPI.Installer/InteractiveInstaller.cs9
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
****/