From ad612da1a26e2933193f7c6a1e9b161ca9b7327b Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 19 Nov 2018 13:37:46 -0500 Subject: fix installer errors on Windows (#602) --- build/prepare-install-package.targets | 12 ++++++------ docs/release-notes.md | 3 +++ docs/technical-docs.md | 4 ++-- src/SMAPI.Installer/Program.cs | 2 +- src/SMAPI.Installer/README.txt | 4 ++-- src/SMAPI.Installer/unix-install.sh | 2 +- src/SMAPI.Installer/windows-install.bat | 2 +- 7 files changed, 16 insertions(+), 13 deletions(-) diff --git a/build/prepare-install-package.targets b/build/prepare-install-package.targets index dd15fb52..aeed101d 100644 --- a/build/prepare-install-package.targets +++ b/build/prepare-install-package.targets @@ -12,8 +12,8 @@ $(CompiledRootPath)\SMAPI.Toolkit\net4.5 $(SolutionDir)\..\bin\SMAPI installer $(SolutionDir)\..\bin\SMAPI installer for developers - windows - mono + windows + unix @@ -28,8 +28,8 @@ - - + + @@ -62,12 +62,12 @@ - + - + diff --git a/docs/release-notes.md b/docs/release-notes.md index bcd35dbb..76bf4b15 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,4 +1,7 @@ # Release notes +## 2.8.1 +* Fixed installer error on Windows. + ## 2.8 * For players: * Reorganised SMAPI files: diff --git a/docs/technical-docs.md b/docs/technical-docs.md index 83e4ea2b..5883ee00 100644 --- a/docs/technical-docs.md +++ b/docs/technical-docs.md @@ -58,12 +58,12 @@ on the wiki for the first-time setup. 2. In Windows: 1. Rebuild the solution in Release mode. - 2. Copy `windows.dat` from `bin/SMAPI installer` and `bin/SMAPI installer for developers` to + 2. Copy `windows-install.*` from `bin/SMAPI installer` and `bin/SMAPI installer for developers` to Linux/Mac. 3. In Linux/Mac: 1. Rebuild the solution in Release mode. - 2. Add the `windows.dat` files to the `bin/SMAPI installer` and + 2. Add the `windows-install.*` files to the `bin/SMAPI installer` and `bin/SMAPI installer for developers` folders. 3. Rename the folders to `SMAPI installer` and `SMAPI installer for developers`. 4. Zip the two folders. diff --git a/src/SMAPI.Installer/Program.cs b/src/SMAPI.Installer/Program.cs index c56c9f80..0ca5aea0 100644 --- a/src/SMAPI.Installer/Program.cs +++ b/src/SMAPI.Installer/Program.cs @@ -33,7 +33,7 @@ namespace StardewModdingApi.Installer { // find install bundle PlatformID platform = Environment.OSVersion.Platform; - FileInfo zipFile = new FileInfo(Path.Combine(Program.InstallerPath, $"{(platform == PlatformID.Win32NT ? "windows" : "mono")}.dat")); + FileInfo zipFile = new FileInfo(Path.Combine(Program.InstallerPath, $"{(platform == PlatformID.Win32NT ? "windows" : "unix")}-install.dat")); if (!zipFile.Exists) { Console.WriteLine($"Oops! Some of the installer files are missing; try redownloading the installer. (Missing file: {zipFile.FullName})"); diff --git a/src/SMAPI.Installer/README.txt b/src/SMAPI.Installer/README.txt index abff9938..79c90cc0 100644 --- a/src/SMAPI.Installer/README.txt +++ b/src/SMAPI.Installer/README.txt @@ -24,8 +24,8 @@ Manual install THIS IS NOT RECOMMENDED FOR MOST PLAYERS. See instructions above instead. If you really want to install SMAPI manually, here's how. -1. Unzip "internal/windows.dat" (on Windows) or "internal/mono.dat" (on Linux/Mac). You can change - '.dat' to '.zip', it's just a normal zip file renamed to prevent confusion. +1. Unzip "internal/windows-install.dat" (on Windows) or "internal/unix-install.dat" (on Linux/Mac). + You can change '.dat' to '.zip', it's just a normal zip file renamed to prevent confusion. 2. Copy the files from the folder you just unzipped into your game folder. The `StardewModdingAPI.exe` file should be right next to the game's executable. 3. diff --git a/src/SMAPI.Installer/unix-install.sh b/src/SMAPI.Installer/unix-install.sh index 57e48f4b..e3a5d8cc 100644 --- a/src/SMAPI.Installer/unix-install.sh +++ b/src/SMAPI.Installer/unix-install.sh @@ -14,7 +14,7 @@ fi # validate Mono & run installer if $COMMAND mono >/dev/null 2>&1; then - mono internal/install.exe + mono internal/unix-install.exe else echo "Oops! Looks like Mono isn't installed. Please install Mono from https://mono-project.com, reboot, and run this installer again." read diff --git a/src/SMAPI.Installer/windows-install.bat b/src/SMAPI.Installer/windows-install.bat index 1ebec989..7a8b409b 100644 --- a/src/SMAPI.Installer/windows-install.bat +++ b/src/SMAPI.Installer/windows-install.bat @@ -1 +1 @@ -START /WAIT /B internal/install.exe +START /WAIT /B internal/windows-install.exe -- cgit