From a10e555095a4f7f0a6858149b3ffd6595fbd24e6 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 28 Jul 2017 11:10:06 -0400 Subject: fix i18n folder being flattened --- build/smapi.targets | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build/smapi.targets b/build/smapi.targets index b9f7e98e..ea0cfffb 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -34,9 +34,13 @@ { foreach (ITaskItem file in Files) { + // get file info string filePath = file.ItemSpec; string entryName = file.GetMetadata("RecursiveDir") + file.GetMetadata("Filename") + file.GetMetadata("Extension"); - + if (new FileInfo(filePath).Directory.Name.Equals("i18n", StringComparison.InvariantCultureIgnoreCase)) + entryName = Path.Combine("i18n", entryName); + + // add to zip using (Stream fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Read)) using (Stream fileStreamInZip = archive.CreateEntry(entryName).Open()) { @@ -187,8 +191,8 @@ - + @@ -198,9 +202,10 @@ + - + -- cgit From 34eff4b08612f687c32faf8ec1b3363ba9fe0aa0 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 28 Jul 2017 11:21:38 -0400 Subject: fix duplicate manifest/i18n files added to release zip if they're also copied to build output --- build/smapi.targets | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build/smapi.targets b/build/smapi.targets index ea0cfffb..58737fba 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -190,9 +190,13 @@ - - - + + + + + + + -- cgit From 048888e09347b38d19bbac5d1c123ec83acfb367 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 28 Jul 2017 11:26:08 -0400 Subject: update nuspec --- package.nuspec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/package.nuspec b/package.nuspec index 9abc7251..b8e96481 100644 --- a/package.nuspec +++ b/package.nuspec @@ -2,16 +2,18 @@ Pathoschild.Stardew.ModBuildConfig - 1.7 + 1.7.1 MSBuild config for Stardew Valley mods Pathoschild Pathoschild false - https://github.com/Pathoschild/Stardew.ModBuildConfig/blob/1.7/LICENSE.txt + https://github.com/Pathoschild/Stardew.ModBuildConfig/blob/1.7.1/LICENSE.txt https://github.com/Pathoschild/Stardew.ModBuildConfig#readme - https://raw.githubusercontent.com/Pathoschild/Stardew.ModBuildConfig/1.7/assets/nuget-icon.png + https://raw.githubusercontent.com/Pathoschild/Stardew.ModBuildConfig/1.7.1/assets/nuget-icon.png Automates the build configuration for crossplatform Stardew Valley SMAPI mods. - Added option to create release zips on build; added reference to XNA's XACT library for audio-related mods. + + 1.7 added an option to create release zips on build and added a reference to XNA's XACT library for audio-related mods. + 1.7.1 fixed an issue where i18n folders were flattened, and ensures that the manifest/i18n files in the project take precedence over those in the build output if both are present. -- cgit