summaryrefslogtreecommitdiff
path: root/build/smapi.targets
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-07-28 11:21:38 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-07-28 11:21:38 -0400
commit34eff4b08612f687c32faf8ec1b3363ba9fe0aa0 (patch)
tree0c0fc7445c1050793d8637b12c81f74e77c604f6 /build/smapi.targets
parenta10e555095a4f7f0a6858149b3ffd6595fbd24e6 (diff)
downloadSMAPI-34eff4b08612f687c32faf8ec1b3363ba9fe0aa0.tar.gz
SMAPI-34eff4b08612f687c32faf8ec1b3363ba9fe0aa0.tar.bz2
SMAPI-34eff4b08612f687c32faf8ec1b3363ba9fe0aa0.zip
fix duplicate manifest/i18n files added to release zip if they're also copied to build output
Diffstat (limited to 'build/smapi.targets')
-rw-r--r--build/smapi.targets10
1 files 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 @@
<DeployModZipTo Condition="'$(OS)' != 'Windows_NT'"><!--disable on Linux/Mac where CodeTaskFactory doesn't seem to be available--></DeployModZipTo>
</PropertyGroup>
<ItemGroup>
- <BuildFiles Include="$(TargetDir)\**\*.*" />
- <BuildFiles Include="$(ProjectDir)\manifest.json" Condition="'@(BuildFiles)' != '' AND EXISTS('$(ProjectDir)\manifest.json')" />
- <I18nFiles Include="$(ProjectDir)\i18n\*.json" Condition="'@(BuildFiles)' != '' AND EXISTS('$(ProjectDir)\i18n')" />
+ <BuildFiles Include="$(TargetDir)\**\*.*" Exclude="$(TargetDir)\manifest.json;$(TargetDir)\i18n\**\*.*" />
+
+ <BuildFiles Include="$(ProjectDir)\manifest.json" Condition="'@(BuildFiles)' != ''" />
+ <BuildFiles Include="$(TargetDir)\manifest.json" Condition="'@(BuildFiles)' != '' AND !EXISTS('$(ProjectDir)\manifest.json')" />
+
+ <I18nFiles Include="$(ProjectDir)\i18n\*.json" Condition="'@(BuildFiles)' != ''" />
+ <I18nFiles Include="$(TargetDir)\i18n\*.json" Condition="'@(BuildFiles)' != '' AND !EXISTS('$(ProjectDir)\i18n')" />
</ItemGroup>
<!--validate paths-->