Skip to content

Commit

Permalink
fix mod build package creating invalid zip files
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathoschild committed Nov 5, 2024
1 parent b707e2c commit 322489a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/technical/mod-package-release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Release notes
## Upcoming release
* Removed build warnings for implicit net field conversions, which were removed in Stardew Valley 1.6.9.
* Fixed zip structure on Linux/macOS after 4.3.0.

## 4.3.0
Released 06 October 2024 for SMAPI 3.13.0 or later.
Expand Down
3 changes: 3 additions & 0 deletions src/SMAPI.ModBuildConfig/DeployModTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ private void CreateReleaseZip(IDictionary<string, IModFileManager> modPackages,
foreach (var file in mod.Value.GetFiles())
{
string relativePath = file.Key;
if (relativePath.Contains('\\'))
relativePath = string.Join("/", PathUtilities.GetSegments(relativePath)); // zip files use forward slashes regardless of OS

FileInfo fileInfo = file.Value;

string archivePath = modPackages.Count == 1
Expand Down

0 comments on commit 322489a

Please sign in to comment.