From 85ff940e6882278fe131cb15b721a09e9283b8fc Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 3 Feb 2017 22:02:54 -0500 Subject: move install package's Mono/Windows folders out of root This will hopefully reduce confusion among players who go into "Windows" instead of running install.exe. --- .../InteractiveInstaller.cs | 6 +-- src/prepare-install-package.targets | 59 +++++++++++----------- 2 files changed, 33 insertions(+), 32 deletions(-) (limited to 'src') diff --git a/src/StardewModdingAPI.Installer/InteractiveInstaller.cs b/src/StardewModdingAPI.Installer/InteractiveInstaller.cs index c024b128..306225a7 100644 --- a/src/StardewModdingAPI.Installer/InteractiveInstaller.cs +++ b/src/StardewModdingAPI.Installer/InteractiveInstaller.cs @@ -27,7 +27,7 @@ namespace StardewModdingApi.Installer yield return $"{Environment.GetEnvironmentVariable("HOME")}/.local/share/Steam/steamapps/common/Stardew Valley"; // Mac - yield return $"/Applications/Stardew Valley.app/Contents/MacOS"; + yield return "/Applications/Stardew Valley.app/Contents/MacOS"; yield return $"{Environment.GetEnvironmentVariable("HOME")}/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS"; // Windows @@ -110,7 +110,7 @@ namespace StardewModdingApi.Installer ** collect details ****/ Platform platform = this.DetectPlatform(); - DirectoryInfo packageDir = new DirectoryInfo(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), platform.ToString())); + DirectoryInfo packageDir = new DirectoryInfo(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "internal", platform.ToString())); DirectoryInfo installDir = this.InteractivelyGetInstallPath(platform); var paths = new { @@ -126,7 +126,7 @@ namespace StardewModdingApi.Installer ****/ if (!packageDir.Exists) { - this.ExitError($"The '{platform}' package directory is missing (should be at {packageDir})."); + this.ExitError($"The 'internal/{platform}' package folder is missing (should be at {packageDir})."); return; } if (!File.Exists(paths.executable)) diff --git a/src/prepare-install-package.targets b/src/prepare-install-package.targets index e903e153..f411b909 100644 --- a/src/prepare-install-package.targets +++ b/src/prepare-install-package.targets @@ -7,45 +7,46 @@ --> - $(SolutionDir)\..\bin\Packaged $(SolutionDir)\..\bin\$(Configuration)\SMAPI + $(SolutionDir)\..\bin\Packaged + $(PackagePath)\internal - + - - + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - \ No newline at end of file + -- cgit