Skip to content

Commit

Permalink
Merge branch 'develop' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathoschild committed Dec 1, 2021
2 parents 3342502 + 25ebcc1 commit 42e878e
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 18 deletions.
2 changes: 1 addition & 1 deletion build/common.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!--set general build properties -->
<Version>3.13.0</Version>
<Version>3.13.1</Version>
<Product>SMAPI</Product>
<LangVersion>latest</LangVersion>
<AssemblySearchPaths>$(AssemblySearchPaths);{GAC}</AssemblySearchPaths>
Expand Down
6 changes: 6 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[README](README.md)

# Release notes
## 3.13.1
Released 30 November 2021 for Stardew Valley 1.5.5 or later.

* Improved .NET 5 validation in Windows installer to better explain how to get the right version.
* Fixed installer failing on Windows when run from the game folder.

## 3.13.0
Released 30 November 2021 for Stardew Valley 1.5.5 or later.

Expand Down
35 changes: 25 additions & 10 deletions src/SMAPI.Installer/assets/windows-install.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@echo off
setlocal enabledelayedexpansion

SET installerDir=%~dp0
SET installerDir="%~dp0"

REM make sure we're not running within a zip folder
echo %installerDir% | findstr /C:"%TEMP%" 1>nul
Expand All @@ -12,23 +13,37 @@ if %ERRORLEVEL% EQU 0 (
)

REM make sure .NET 5 is installed
SET hasNet5=1
WHERE dotnet /q
if %ERRORLEVEL% NEQ 0 (
echo Oops! You must have .NET 5 ^(desktop x64^) installed to use SMAPI: https://dotnet.microsoft.com/download/dotnet/5.0/runtime
echo.
pause
exit
if !ERRORLEVEL! NEQ 0 (
SET hasNet5=0
) else (
dotnet --info | findstr /C:"Microsoft.WindowsDesktop.App 5." 1>nul
if !ERRORLEVEL! NEQ 0 (
SET hasNet5=0
)
)
dotnet --info | findstr /C:"Microsoft.WindowsDesktop.App 5." 1>nul
if %ERRORLEVEL% NEQ 0 (
echo Oops! You must have .NET 5 ^(desktop x64^) installed to use SMAPI: https://dotnet.microsoft.com/download/dotnet/5.0/runtime
if "%hasNet5%" == "0" (
echo Oops! You don't have the required .NET version installed.
echo.
echo To install it:
echo 1. Go to https://dotnet.microsoft.com/download/dotnet/5.0/runtime

if "%PROCESSOR_ARCHITECTURE%" == "ARM64" (
echo 2. Under "Run desktop apps", click "Download Arm64".
) else (
echo 2. Under "Run desktop apps", click "Download x64".
)

echo 3. Run the downloaded installer.
echo 4. Restart your computer.
echo.
pause
exit
)

REM make sure an antivirus hasn't deleted the installer DLL
if not exist "%installerDir%internal\windows\SMAPI.Installer.dll" (
if not exist %installerDir%"internal\windows\SMAPI.Installer.dll" (
echo Oops! SMAPI is missing one of its files. Your antivirus might have deleted it.
echo Missing file: %installerDir%internal\windows\SMAPI.Installer.dll
echo.
Expand Down
4 changes: 2 additions & 2 deletions src/SMAPI.Mods.ConsoleCommands/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Name": "Console Commands",
"Author": "SMAPI",
"Version": "3.13.0",
"Version": "3.13.1",
"Description": "Adds SMAPI console commands that let you manipulate the game.",
"UniqueID": "SMAPI.ConsoleCommands",
"EntryDll": "ConsoleCommands.dll",
"MinimumApiVersion": "3.13.0"
"MinimumApiVersion": "3.13.1"
}
4 changes: 2 additions & 2 deletions src/SMAPI.Mods.ErrorHandler/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Name": "Error Handler",
"Author": "SMAPI",
"Version": "3.13.0",
"Version": "3.13.1",
"Description": "Handles some common vanilla errors to log more useful info or avoid breaking the game.",
"UniqueID": "SMAPI.ErrorHandler",
"EntryDll": "ErrorHandler.dll",
"MinimumApiVersion": "3.13.0"
"MinimumApiVersion": "3.13.1"
}
4 changes: 2 additions & 2 deletions src/SMAPI.Mods.SaveBackup/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Name": "Save Backup",
"Author": "SMAPI",
"Version": "3.13.0",
"Version": "3.13.1",
"Description": "Automatically backs up all your saves once per day into its folder.",
"UniqueID": "SMAPI.SaveBackup",
"EntryDll": "SaveBackup.dll",
"MinimumApiVersion": "3.13.0"
"MinimumApiVersion": "3.13.1"
}
2 changes: 1 addition & 1 deletion src/SMAPI/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ internal static class EarlyConstants
internal static int? LogScreenId { get; set; }

/// <summary>SMAPI's current raw semantic version.</summary>
internal static string RawApiVersion = "3.13.0";
internal static string RawApiVersion = "3.13.1";
}

/// <summary>Contains SMAPI's constants and assumptions.</summary>
Expand Down

0 comments on commit 42e878e

Please sign in to comment.