From 555e0d12241f9bda0262f513fa6bc8c55cc7d5fe Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 19 Oct 2016 18:54:04 -0400 Subject: add NuGet package spec + icon --- build/smapi.targets | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 build/smapi.targets (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets new file mode 100644 index 00000000..1e71d06a --- /dev/null +++ b/build/smapi.targets @@ -0,0 +1,51 @@ + + + + C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley + C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley + ~\Library\Application Support\Steam\steamapps\common\Stardew Valley\Contents\MacOS + Program + $(GamePath)\StardewModdingAPI.exe + $(GamePath) + + + + + + + + + $(GamePath)\Stardew Valley.exe + + + $(GamePath)\StardewModdingAPI.exe + + + False + $(GamePath)\xTile.dll + + + + + + + False + $(GamePath)\MonoGame.Framework.dll + + + $(GamePath)\StardewValley.exe + + + $(GamePath)\StardewModdingAPI.exe + + + $(GamePath)\xTile.dll + + + + + + + + + \ No newline at end of file -- cgit From 520c46fbe661acac7f6c7854b71d05f58a06cf64 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 19 Oct 2016 19:26:33 -0400 Subject: expand readme, restructure config --- build/smapi.targets | 82 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 46 insertions(+), 36 deletions(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index 1e71d06a..6231650c 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -1,47 +1,57 @@ - + C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley ~\Library\Application Support\Steam\steamapps\common\Stardew Valley\Contents\MacOS - Program - $(GamePath)\StardewModdingAPI.exe - $(GamePath) - - - - - - - $(GamePath)\Stardew Valley.exe - - - $(GamePath)\StardewModdingAPI.exe - - - False - $(GamePath)\xTile.dll - - + + + + + + + + + + $(GamePath)\Stardew Valley.exe + + + $(GamePath)\StardewModdingAPI.exe + + + False + $(GamePath)\xTile.dll + + - - - - False - $(GamePath)\MonoGame.Framework.dll - - - $(GamePath)\StardewValley.exe - - - $(GamePath)\StardewModdingAPI.exe - - - $(GamePath)\xTile.dll - - + + + Program + $(GamePath)\StardewModdingAPI.exe + $(GamePath) + + + + + + + False + $(GamePath)\MonoGame.Framework.dll + + + $(GamePath)\StardewValley.exe + + + $(GamePath)\StardewModdingAPI.exe + + + $(GamePath)\xTile.dll + + + + -- cgit From e5d38b73720c58b00ea747b66be18f8b735d2e6e Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 19 Oct 2016 20:16:06 -0400 Subject: tweak error text --- build/smapi.targets | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index 6231650c..f38f1585 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -53,9 +53,8 @@ - + - + - \ No newline at end of file -- cgit From 465bd538e476766f1114f915f955e30c9abab944 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 19 Oct 2016 20:43:35 -0400 Subject: add more install paths --- build/smapi.targets | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index f38f1585..7d512a29 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -1,9 +1,18 @@ - C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley + + $(STARDEWVALLEY_DIR) + + + ~/.local/share/Steam/steamapps/common/Stardew Valley + + + ~/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS + + + C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley - ~\Library\Application Support\Steam\steamapps\common\Stardew Valley\Contents\MacOS -- cgit From 524c56ee757464b5785c4d704d4da1862b173db9 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 19 Oct 2016 22:53:49 -0400 Subject: correct home paths on Linux/Mac --- build/smapi.targets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index 7d512a29..2ca7a829 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -5,10 +5,10 @@ $(STARDEWVALLEY_DIR) - ~/.local/share/Steam/steamapps/common/Stardew Valley + $(HOME)/.local/share/Steam/steamapps/common/Stardew Valley - ~/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS + $(HOME)/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley -- cgit From 502559146bfb3cd39ee941245c3f71a7798a0760 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 21 Oct 2016 01:25:21 -0400 Subject: add GOG path on Linux --- build/smapi.targets | 1 + 1 file changed, 1 insertion(+) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index 2ca7a829..2c0ca5b7 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -5,6 +5,7 @@ $(STARDEWVALLEY_DIR) + $(HOME)/GOG Games/Stardew Valley/game $(HOME)/.local/share/Steam/steamapps/common/Stardew Valley -- cgit From cb9efa4e8266b67ddb5c19a107af389cdedce49c Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 21 Oct 2016 19:42:09 -0400 Subject: add support for platform targeting --- build/smapi.targets | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index 2c0ca5b7..074581b4 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -1,5 +1,23 @@ - + + + + + Linux + Mac + Windows + + + Linux + Mac + Windows + + + $(STARDEWVALLEY_DIR) @@ -16,9 +34,11 @@ C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley - + - + @@ -63,8 +83,11 @@ - + + \ No newline at end of file -- cgit From 9db2bbc94168ea4770fb0714f51a6fa813bb9e04 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 24 Oct 2016 10:51:54 -0400 Subject: no longer copy game binaries to build output --- build/smapi.targets | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index 074581b4..0bd8e0ae 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -41,18 +41,27 @@ - - - + + false + + + false + + + false + $(GamePath)\Stardew Valley.exe + false $(GamePath)\StardewModdingAPI.exe + false - False $(GamePath)\xTile.dll + false + False @@ -67,17 +76,21 @@ - False $(GamePath)\MonoGame.Framework.dll + false + False $(GamePath)\StardewValley.exe + false $(GamePath)\StardewModdingAPI.exe + false $(GamePath)\xTile.dll + false -- cgit From 0fe3275037b03fefb4e4c09a30097a85a12a3c03 Mon Sep 17 00:00:00 2001 From: Patrick Müssig Date: Tue, 6 Dec 2016 21:04:50 +0100 Subject: add support for non default Stardew Valley pathes (Steam and gog) --- build/smapi.targets | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index 0bd8e0ae..759bd104 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -30,9 +30,11 @@ $(HOME)/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS - C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley - C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley - + C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley + $([" >$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\1453375253}', 'PATH', null,RegistryView.Registry64, RegistryView.Registry32)) + C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley + $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null,RegistryView.Registry64, RegistryView.Registry32)) + C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley - $([" >$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\1453375253}', 'PATH', null,RegistryView.Registry64, RegistryView.Registry32)) C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley - $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null,RegistryView.Registry64, RegistryView.Registry32)) - + $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\1453375253@PATH) + $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150@InstallLocation) + C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley - $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\1453375253@PATH) - $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150@InstallLocation) + $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\GOG.com\Games\1453375253}', 'PATH', null, RegistryView.Registry32)) + $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null,RegistryView.Registry64, RegistryView.Registry32)) C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley - $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\GOG.com\Games\1453375253}', 'PATH', null, RegistryView.Registry32)) - $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null,RegistryView.Registry64, RegistryView.Registry32)) + $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\GOG.com\Games\1453375253', 'PATH', null, RegistryView.Registry32)) + $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\1453375253', 'PATH', null, RegistryView.Registry64) + $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null, RegistryView.Registry64, RegistryView.Registry32)) - - $(STARDEWVALLEY_DIR) - $(HOME)/GOG Games/Stardew Valley/game $(HOME)/.local/share/Steam/steamapps/common/Stardew Valley -- cgit From 93dcf1f1e18441a6eeb585d0d77888248370f429 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 10 Jan 2017 17:13:58 -0500 Subject: remove support custom target platform (never used) --- build/smapi.targets | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index 93588445..3c6717da 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -3,16 +3,9 @@ ## select target OS #######--> - - - Linux - Mac - Windows - - - Linux - Mac - Windows + Linux + Mac + Windows - C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley - C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley + C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley + C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\GOG.com\Games\1453375253', 'PATH', null, RegistryView.Registry32)) $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null, RegistryView.Registry64, RegistryView.Registry32)) -- cgit From f37733df11873250233a2cf84a118cfcd37dd643 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 22 Jan 2017 22:18:47 -0500 Subject: Add GOG Mac path Thanks to LeonBlade for the path. --- build/smapi.targets | 1 + 1 file changed, 1 insertion(+) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index 3c6717da..ed513846 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -17,6 +17,7 @@ $(HOME)/.local/share/Steam/steamapps/common/Stardew Valley + /Applications/Stardew Valley.app/Contents/MacOS $(HOME)/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS -- cgit From 2c278b970385486232b2c2727ab74c20e7730921 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 22 Jan 2017 22:52:41 -0500 Subject: add support for setting a custom game path globally --- build/smapi.targets | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index ed513846..de3420d1 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -1,4 +1,10 @@ + + + + @@ -94,6 +100,6 @@ #######--> - + \ No newline at end of file -- cgit From 66b1b583e5233a4b50b832733d8e2cbc329a70be Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 5 Jun 2017 16:01:08 -0400 Subject: add error if a game folder is detected, but it doesn't contain Stardew Valley or SMAPI --- build/smapi.targets | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index de3420d1..21989bd1 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -101,5 +101,8 @@ + + + \ No newline at end of file -- cgit From ffc339bc29a9b4b08d53a5d147546630116d82d7 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 5 Jun 2017 15:24:53 -0400 Subject: add support for deploying mods to game folder automatically --- build/smapi.targets | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index 21989bd1..ea6af723 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -105,4 +105,29 @@ + + + + + + $(GamePath)\Mods\$(DeployModFolderName) + $(ProjectDir)\manifest.json + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit From cf6445b8e1cfac6299102582288f5406daa724a5 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 9 Jul 2017 23:29:51 -0400 Subject: improve OS and game path detection to avoid crossplatform issues --- build/smapi.targets | 58 ++++++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 27 deletions(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index ea6af723..e2af5d90 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -6,35 +6,36 @@ - - Linux - Mac - Windows - - - - - - $(HOME)/GOG Games/Stardew Valley/game - $(HOME)/.local/share/Steam/steamapps/common/Stardew Valley - - - /Applications/Stardew Valley.app/Contents/MacOS - $(HOME)/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS - - - C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley - C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley - $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\GOG.com\Games\1453375253', 'PATH', null, RegistryView.Registry32)) - $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null, RegistryView.Registry64, RegistryView.Registry32)) - + + + + Linux + $(HOME)/GOG Games/Stardew Valley/game + $(HOME)/.local/share/Steam/steamapps/common/Stardew Valley + + + + + Mac + /Applications/Stardew Valley.app/Contents/MacOS + $(HOME)/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS + + + + + Windows + C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley + C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley + $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\GOG.com\Games\1453375253', 'PATH', null, RegistryView.Registry32)) + $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null, RegistryView.Registry64, RegistryView.Registry32)) + + + @@ -99,6 +100,9 @@ ## validate #######--> + + + @@ -107,7 +111,7 @@ -- cgit From 9beefb65fa0213603c3aa52875d88c0b410dbfd6 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 9 Jul 2017 23:33:08 -0400 Subject: clear GamePlatform if unknown --- build/smapi.targets | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index e2af5d90..b2ce5967 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -32,6 +32,11 @@ $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null, RegistryView.Registry64, RegistryView.Registry32)) + + + + + - + @@ -106,12 +98,12 @@ #######--> - + - - + + @@ -139,4 +131,4 @@ - \ No newline at end of file + -- cgit From 1fa12092c6130fbf8fb9c256f6c23e69c740a841 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 10 Jul 2017 15:45:22 -0400 Subject: combine Linux/Mac paths Mono may report Mac as either 'Unix' or 'OSX', and we don't really need to distinguish them for our purposes anyway. --- build/smapi.targets | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index 3a9c42c1..a544067b 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -9,14 +9,13 @@ ## find platform + game path #######--> - + + $(HOME)/GOG Games/Stardew Valley/game $(HOME)/.local/share/Steam/steamapps/common/Stardew Valley - - - - + + /Applications/Stardew Valley.app/Contents/MacOS $(HOME)/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS -- cgit From eca5e56883f3d94e0541710a10e4b2b44d1e38f7 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Thu, 27 Jul 2017 19:15:40 -0400 Subject: also reference Microsoft.Xna.Framework.Xact by default --- build/smapi.targets | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index a544067b..d95fa887 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -46,6 +46,9 @@ false + + false + $(GamePath)\Stardew Valley.exe false -- cgit From 285c0448fd6f8c90fa05dc668dd27f452fa513ab Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 28 Jul 2017 00:10:32 -0400 Subject: add option to create release zip files (Windows-only) CodeTaskFactory doesn't seem to be available on Linux/Mac. --- build/smapi.targets | 104 +++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 87 insertions(+), 17 deletions(-) (limited to 'build') diff --git a/build/smapi.targets b/build/smapi.targets index d95fa887..b9f7e98e 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -1,6 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + @@ -30,9 +92,10 @@ - + + @@ -95,8 +158,12 @@ + + @@ -110,27 +177,30 @@ - - + + $(GamePath)\Mods\$(DeployModFolderName) - $(ProjectDir)\manifest.json + - + + - + - + + + + + - - - - - + + + -- cgit 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(-) (limited to 'build') 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(-) (limited to 'build') 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 6f3fc68dafcaaaab59352378a9cdae41040e271a Mon Sep 17 00:00:00 2001 From: Death Date: Sat, 7 Oct 2017 00:58:17 -0500 Subject: 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(-) (limited to 'build') 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); -- cgit From 78e59e1a48e6d9d2583c9a