Improve artifact clean

This commit is contained in:
Ted John 2016-08-26 18:04:17 +01:00
parent 6654cdadfe
commit 6a367e2066

View file

@ -44,7 +44,8 @@
<SignCertificate Condition="'$(SignCertificate)'==''">$(DistDir)windows\code-sign-key-openrct2.org.pfx</SignCertificate> <SignCertificate Condition="'$(SignCertificate)'==''">$(DistDir)windows\code-sign-key-openrct2.org.pfx</SignCertificate>
<SignTimestampUrl>http://timestamp.comodoca.com/authenticode</SignTimestampUrl> <SignTimestampUrl>http://timestamp.comodoca.com/authenticode</SignTimestampUrl>
<PublishPostfix>-$(Configuration)-$(Platform)-$(GIT_COMMIT_SHA1_SHORT)</PublishPostfix> <PublishPostfix>-$(Configuration)-$(Platform)</PublishPostfix>
<PublishPostfix Condition="'$(GIT_COMMIT_SHA1_SHORT)'!=''">$(PublishPostfix)-$(GIT_COMMIT_SHA1_SHORT)</PublishPostfix>
<PublishPostfix>$(PublishPostfix.ToLower())</PublishPostfix> <PublishPostfix>$(PublishPostfix.ToLower())</PublishPostfix>
<PublishZip>$(ArtifactsDir)openrct2-portable$(PublishPostfix).zip</PublishZip> <PublishZip>$(ArtifactsDir)openrct2-portable$(PublishPostfix).zip</PublishZip>
<PublishSymbolsZip Condition="'$(GIT_COMMIT_SHA1_SHORT)'==''">$(ArtifactsDir)openrct2-symbols$(PublishPostfix).zip</PublishSymbolsZip> <PublishSymbolsZip Condition="'$(GIT_COMMIT_SHA1_SHORT)'==''">$(ArtifactsDir)openrct2-symbols$(PublishPostfix).zip</PublishSymbolsZip>
@ -134,13 +135,16 @@
</Target> </Target>
<Target Name="BeforeClean"> <Target Name="BeforeClean">
<Delete Condition="'$(Platform)'=='Win32'" Files="$(OutputExe)" /> <ItemGroup>
<Delete Condition="'$(Platform)'=='x64'" Files="$(OutputSegmentInfo)" /> <CleanItems Condition="'$(Platform)'=='Win32'" Include="$(OutputExe)" />
<Delete Files="$(TargetDir)curl-ca-bundle.crt" /> <CleanItems Condition="'$(Platform)'=='x64'" Include="$(OutputSegmentInfo)" />
<Delete Files="$(g2Output)" /> <CleanItems Include="$(TargetDir)curl-ca-bundle.crt" />
<Delete Files="$(PublishZip)" /> <CleanItems Include="$(g2Output)" />
<Delete Files="$(PublishSymbolsZip)" /> <CleanItems Include="$(ArtifactsDir)openrct2-installer-$(Configuration)-$(Platform)*.exe" />
<Delete Files="$(PublishInstallerExe)" /> <CleanItems Include="$(ArtifactsDir)openrct2-portable-$(Configuration)-$(Platform)*.zip" />
<CleanItems Include="$(ArtifactsDir)openrct2-symbols-$(Configuration)-$(Platform)*.zip" />
</ItemGroup>
<Delete Files="@(CleanItems)" />
<RemoveDir Directories="$(TargetDir)data" /> <RemoveDir Directories="$(TargetDir)data" />
</Target> </Target>