From 6f3fc68dafcaaaab59352378a9cdae41040e271a Mon Sep 17 00:00:00 2001 From: Death Date: Sat, 7 Oct 2017 00:58:17 -0500 Subject: [PATCH] Updates exported mod zip files to use a base folder Instead of all of the mod files being in the root directory of the zip file, they are now in /ModName/, making it easier for modders to export upload-ready zip files of their mods. --- build/smapi.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/smapi.targets b/build/smapi.targets index 58737fba..ab7fb71f 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -36,7 +36,7 @@ { // get file info string filePath = file.ItemSpec; - string entryName = file.GetMetadata("RecursiveDir") + file.GetMetadata("Filename") + file.GetMetadata("Extension"); + string entryName = ModName + '/' + file.GetMetadata("RecursiveDir") + file.GetMetadata("Filename") + file.GetMetadata("Extension"); if (new FileInfo(filePath).Directory.Name.Equals("i18n", StringComparison.InvariantCultureIgnoreCase)) entryName = Path.Combine("i18n", entryName);