mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Improve artifact building
This commit is contained in:
parent
ff9e249a85
commit
0b2341ab8e
2 changed files with 16 additions and 13 deletions
|
@ -25,9 +25,9 @@ configuration: Release
|
||||||
build:
|
build:
|
||||||
project: openrct2.proj
|
project: openrct2.proj
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: .\artifacts\openrct2.zip
|
- path: .\artifacts\openrct2-portable*.zip
|
||||||
name: OpenRCT2-portable
|
name: OpenRCT2-portable
|
||||||
- path: .\artifacts\*.exe
|
- path: .\artifacts\openrct2-installer*.exe
|
||||||
name: OpenRCT2-installer
|
name: OpenRCT2-installer
|
||||||
- path: .\artifacts\openrct2-symbols-*.zip
|
- path: .\artifacts\openrct2-symbols*.zip
|
||||||
name: OpenRCT2 debug symbols
|
name: OpenRCT2 debug symbols
|
||||||
|
|
|
@ -41,10 +41,12 @@
|
||||||
<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>
|
||||||
|
|
||||||
<PublishZip>$(ArtifactsDir)openrct2.zip</PublishZip>
|
<PublishPostfix>-$(Configuration)-$(Platform)-$(GIT_COMMIT_SHA1_SHORT)</PublishPostfix>
|
||||||
<PublishSymbolsZip Condition="'$(GIT_COMMIT_SHA1_SHORT)'==''">$(ArtifactsDir)openrct2-symbols.zip</PublishSymbolsZip>
|
<PublishPostfix>$(PublishPostfix.ToLower())</PublishPostfix>
|
||||||
<PublishSymbolsZip Condition="'$(GIT_COMMIT_SHA1_SHORT)'!=''">$(ArtifactsDir)openrct2-symbols-$(GIT_COMMIT_SHA1_SHORT).zip</PublishSymbolsZip>
|
<PublishZip>$(ArtifactsDir)openrct2-portable$(PublishPostfix).zip</PublishZip>
|
||||||
<PublishInstallerExe>$(ArtifactsDir)openrct2-install.exe</PublishInstallerExe>
|
<PublishSymbolsZip Condition="'$(GIT_COMMIT_SHA1_SHORT)'==''">$(ArtifactsDir)openrct2-symbols$(PublishPostfix).zip</PublishSymbolsZip>
|
||||||
|
<PublishSymbolsZip Condition="'$(GIT_COMMIT_SHA1_SHORT)'!=''">$(ArtifactsDir)openrct2-symbols$(PublishPostfix).zip</PublishSymbolsZip>
|
||||||
|
<PublishInstallerExe>$(ArtifactsDir)openrct2-installer$(PublishPostfix).exe</PublishInstallerExe>
|
||||||
|
|
||||||
<UploadFilename>OpenRCT2-$(Version)$(VersionExtension)-windows</UploadFilename>
|
<UploadFilename>OpenRCT2-$(Version)$(VersionExtension)-windows</UploadFilename>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@ -94,10 +96,13 @@
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="BeforeClean">
|
<Target Name="BeforeClean">
|
||||||
|
<Delete Condition="'$(Platform)'=='Win32'" Files="$(TargetDir)openrct2.exe" />
|
||||||
|
<Delete Files="$(TargetDir)curl-ca-bundle.crt" />
|
||||||
<Delete Files="$(g2Output)" />
|
<Delete Files="$(g2Output)" />
|
||||||
<Delete Files="$(PublishZip)" />
|
<Delete Files="$(PublishZip)" />
|
||||||
<Delete Files="$(PublishSymbolsZip)" />
|
<Delete Files="$(PublishSymbolsZip)" />
|
||||||
<Delete Files="$(PublishInstallerExe)" />
|
<Delete Files="$(PublishInstallerExe)" />
|
||||||
|
<RemoveDir Directories="$(TargetDir)data" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="BeforeBuild" BeforeTargets="InitializeBuildStatus" DependsOnTargets="DownloadLibs">
|
<Target Name="BeforeBuild" BeforeTargets="InitializeBuildStatus" DependsOnTargets="DownloadLibs">
|
||||||
|
@ -135,19 +140,15 @@
|
||||||
|
|
||||||
<!-- Target to publish OpenRCT2 as a portable zip -->
|
<!-- Target to publish OpenRCT2 as a portable zip -->
|
||||||
<Target Name="PublishPortable" DependsOnTargets="Build;g2;Sign" Inputs="@(PublishItems)" Outputs="$(PublishZip)">
|
<Target Name="PublishPortable" DependsOnTargets="Build;g2;Sign" Inputs="@(PublishItems)" Outputs="$(PublishZip)">
|
||||||
<!-- Copy publish files -->
|
|
||||||
<Message Importance="high" Text="Copying publish files..." />
|
|
||||||
<MakeDir Directories="$(ArtifactsDir)" />
|
<MakeDir Directories="$(ArtifactsDir)" />
|
||||||
|
<Message Importance="high" Text="Creating $([System.IO.Path]::GetFileName($(PublishZip)))..." />
|
||||||
<!-- Create zip -->
|
|
||||||
<Message Importance="high" Text="Creating openrct2.zip..." />
|
|
||||||
<_7z Output="$(PublishZip)" Inputs="@(PublishItems)" />
|
<_7z Output="$(PublishZip)" Inputs="@(PublishItems)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<!-- Target to publish the OpenRCT2 debug symbols -->
|
<!-- Target to publish the OpenRCT2 debug symbols -->
|
||||||
<Target Name="PublishSymbols" DependsOnTargets="Build;Sign" Inputs="@(SymbolItems)" Outputs="$(PublishSymbolsZip)">
|
<Target Name="PublishSymbols" DependsOnTargets="Build;Sign" Inputs="@(SymbolItems)" Outputs="$(PublishSymbolsZip)">
|
||||||
<MakeDir Directories="$(ArtifactsDir)" />
|
<MakeDir Directories="$(ArtifactsDir)" />
|
||||||
<Message Importance="high" Text="Creating openrct2-symbols.zip..." />
|
<Message Importance="high" Text="Creating $([System.IO.Path]::GetFileName($(PublishSymbolsZip)))..." />
|
||||||
<_7z Output="$(PublishSymbolsZip)" Inputs="@(SymbolItems)" />
|
<_7z Output="$(PublishSymbolsZip)" Inputs="@(SymbolItems)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
@ -163,6 +164,8 @@
|
||||||
<PublishInstallerExeName>$([System.IO.Path]::GetFilename($(PublishInstallerExe)))</PublishInstallerExeName>
|
<PublishInstallerExeName>$([System.IO.Path]::GetFilename($(PublishInstallerExe)))</PublishInstallerExeName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<MakeDir Directories="$(ArtifactsDir)" />
|
||||||
|
|
||||||
<!-- Create the installer -->
|
<!-- Create the installer -->
|
||||||
<Message Text="Building Windows Installer (NSIS script)" Importance="high" />
|
<Message Text="Building Windows Installer (NSIS script)" Importance="high" />
|
||||||
<Exec Command="makensis /DOUTFILE=$(PublishInstallerExe) ^
|
<Exec Command="makensis /DOUTFILE=$(PublishInstallerExe) ^
|
||||||
|
|
Loading…
Reference in a new issue