summaryrefslogtreecommitdiff
path: root/build/smapi.targets
diff options
context:
space:
mode:
authorDeath <DeathGameDev@gmail.com>2017-10-07 00:58:17 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2017-10-07 18:51:26 -0400
commit6f3fc68dafcaaaab59352378a9cdae41040e271a (patch)
tree82e14b8d4ee4a3bb43132b6396b07e851654aef7 /build/smapi.targets
parent97c441dd0239dfce8cd0f6d2ac6ed341e6d8a9bd (diff)
downloadSMAPI-6f3fc68dafcaaaab59352378a9cdae41040e271a.tar.gz
SMAPI-6f3fc68dafcaaaab59352378a9cdae41040e271a.tar.bz2
SMAPI-6f3fc68dafcaaaab59352378a9cdae41040e271a.zip
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.
Diffstat (limited to 'build/smapi.targets')
-rw-r--r--build/smapi.targets2
1 files changed, 1 insertions, 1 deletions
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);