Skip to content

Commit 0133ca9

Browse files
committed
Merge branch 'develop' into stable
2 parents 667844d + 513ef3e commit 0133ca9

File tree

8 files changed

+26
-33
lines changed

8 files changed

+26
-33
lines changed

build/common.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repo. It imports the other MSBuild files as needed.
77
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
88
<PropertyGroup>
99
<!--set general build properties -->
10-
<Version>4.1.8</Version>
10+
<Version>4.1.9</Version>
1111
<Product>SMAPI</Product>
1212
<LangVersion>latest</LangVersion>
1313
<AssemblySearchPaths>$(AssemblySearchPaths);{GAC}</AssemblySearchPaths>

docs/release-notes.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
[README](README.md)
22

33
# Release notes
4+
# 4.1.9
5+
Released 08 December 2024 for Stardew Valley 1.6.14 or later.
6+
7+
* For players:
8+
* Fixed compatibility with new macOS security restrictions (again).
9+
* Fixed unable to override color schemes via `smapi-internal/config.user.json`.
10+
411
## 4.1.8
512
Released 28 November 2024 for Stardew Valley 1.6.14 or later.
613

714
* For players:
815
* Updated the mod compatibility blacklist.
9-
* Fixed compatibility with newer macOS security restrictions.
16+
* Fixed compatibility with new macOS security restrictions.
1017
* Fixed crash with some rare combinations of mods involving Harmony and mod APIs.
1118

1219
* For mod authors:

src/SMAPI.Installer/InteractiveInstaller.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -415,21 +415,6 @@ public void Run(string[] args)
415415
}
416416
}.Start();
417417
}
418-
419-
// sign SMAPI on macOS
420-
// This avoids 'StardewModdingAPI will damage your computer' errors in newer versions.
421-
if (context.Platform is Platform.Mac)
422-
{
423-
new Process
424-
{
425-
StartInfo = new ProcessStartInfo
426-
{
427-
FileName = "codesign",
428-
Arguments = $"--force --sign - \"{paths.UnixSmapiExecutablePath}\"",
429-
CreateNoWindow = true
430-
}
431-
}.Start();
432-
}
433418
}
434419

435420
// copy the game's deps.json file

src/SMAPI.Internal/ConsoleWriting/ColorSchemeConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ internal class ColorSchemeConfig
1010
** Accessors
1111
*********/
1212
/// <summary>The default color scheme ID to use, or <see cref="MonitorColorScheme.AutoDetect"/> to select one automatically.</summary>
13-
public MonitorColorScheme UseScheme { get; }
13+
public MonitorColorScheme UseScheme { get; set; }
1414

1515
/// <summary>The available console color schemes.</summary>
16-
public IDictionary<MonitorColorScheme, IDictionary<ConsoleLogLevel, ConsoleColor>> Schemes { get; }
16+
public IDictionary<MonitorColorScheme, IDictionary<ConsoleLogLevel, ConsoleColor>> Schemes { get; set; }
1717

1818

1919
/*********
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"Name": "Console Commands",
33
"Author": "SMAPI",
4-
"Version": "4.1.8",
4+
"Version": "4.1.9",
55
"Description": "Adds SMAPI console commands that let you manipulate the game.",
66
"UniqueID": "SMAPI.ConsoleCommands",
77
"EntryDll": "ConsoleCommands.dll",
8-
"MinimumApiVersion": "4.1.8"
8+
"MinimumApiVersion": "4.1.9"
99
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"Name": "Save Backup",
33
"Author": "SMAPI",
4-
"Version": "4.1.8",
4+
"Version": "4.1.9",
55
"Description": "Automatically backs up all your saves once per day into its folder.",
66
"UniqueID": "SMAPI.SaveBackup",
77
"EntryDll": "SaveBackup.dll",
8-
"MinimumApiVersion": "4.1.8"
8+
"MinimumApiVersion": "4.1.9"
99
}

src/SMAPI.Toolkit/Framework/Clients/CompatibilityRepo/CompatibilityRepoClient.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@ public class CompatibilityRepoClient : IDisposable
2727
** Public methods
2828
*********/
2929
/// <summary>Construct an instance.</summary>
30-
/// <param name="fetchUrl">The full URL of the JSON file to fetch.</param>
30+
/// <param name="fetchBaseUrl">The base URL from which to fetch the compatibility list JSON files.</param>
3131
/// <param name="userAgent">The user agent for the API client.</param>
32-
public CompatibilityRepoClient(string userAgent, string fetchUrl = "https://raw.githubusercontent.com/Pathoschild/SmapiCompatibilityList/refs/heads/release/data/data.jsonc")
32+
public CompatibilityRepoClient(string userAgent, string fetchBaseUrl = "https://raw.githubusercontent.com/Pathoschild/SmapiCompatibilityList/refs/heads/release/data")
3333
{
34-
this.Client = new FluentClient(fetchUrl).SetUserAgent(userAgent);
34+
this.Client = new FluentClient(fetchBaseUrl)
35+
.SetUserAgent(userAgent);
36+
this.Client.Filters.Add(new ForceJsonResponseTypeFilter());
37+
3538
this.MarkdownPipeline = new MarkdownPipelineBuilder()
3639
.Use(new ExpandCompatibilityListAnchorLinksExtension())
3740
.Build();
@@ -40,14 +43,12 @@ public CompatibilityRepoClient(string userAgent, string fetchUrl = "https://raw.
4043
/// <summary>Fetch mods from the compatibility list.</summary>
4144
public async Task<ModCompatibilityEntry[]> FetchModsAsync()
4245
{
43-
RawCompatibilityList response = await this.Client
44-
.GetAsync(null)
45-
.WithFilter(new ForceJsonResponseTypeFilter())
46-
.As<RawCompatibilityList>();
46+
RawCompatibilityList mods = await this.Client.GetAsync("mods.jsonc").As<RawCompatibilityList>();
47+
RawCompatibilityList brokenContentPacks = await this.Client.GetAsync("broken-content-packs.jsonc").As<RawCompatibilityList>();
4748

4849
return
49-
(response.Mods ?? Array.Empty<RawModEntry>())
50-
.Concat(response.BrokenContentPacks ?? Array.Empty<RawModEntry>())
50+
(mods.Mods ?? Array.Empty<RawModEntry>())
51+
.Concat(brokenContentPacks.BrokenContentPacks ?? Array.Empty<RawModEntry>())
5152
.Select(this.ParseRawModEntry)
5253
.ToArray();
5354
}

src/SMAPI/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ internal static class EarlyConstants
4949
internal static int? LogScreenId { get; set; }
5050

5151
/// <summary>SMAPI's current raw semantic version.</summary>
52-
internal static string RawApiVersion = "4.1.8";
52+
internal static string RawApiVersion = "4.1.9";
5353
}
5454

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

0 commit comments

Comments
 (0)