Permalink
Browse files

Create openrct2.com and add to installer

  • Loading branch information...
1 parent b7b5881 commit 4d8779957f0529bcf9dbcab281738326f31cc19f @IntelOrca IntelOrca committed Jan 9, 2017
Showing with 21 additions and 0 deletions.
  1. +4 −0 distribution/windows/install.nsi
  2. +17 −0 openrct2.proj
@@ -152,6 +152,8 @@ Section "!OpenRCT2" Section1
; Copy executable
File /oname=${OPENRCT2_EXE} ${BINARY_DIR}\${OPENRCT2_EXE}
+ File /oname=openrct2.com ${BINARY_DIR}\openrct2.com
+ File /oname=openrct2.dll ${BINARY_DIR}\openrct2.dll
; Create the Registry Entries
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2" "Comments" "Visit ${APPURLLINK}"
@@ -218,6 +220,8 @@ Section "Uninstall"
Delete "$INSTDIR\readme.txt"
Delete "$INSTDIR\contributors.md"
Delete "$INSTDIR\${OPENRCT2_EXE}"
+ Delete "$INSTDIR\openrct2.com"
+ Delete "$INSTDIR\openrct2.dll"
Delete "$INSTDIR\INSTALL.LOG"
; Data files
View
@@ -40,6 +40,8 @@
<NsisScript>$(DistDir)windows\install.nsi</NsisScript>
<OutputExe>$(TargetDir)openrct2.exe</OutputExe>
+ <OutputCom>$(TargetDir)openrct2.com</OutputCom>
+ <OutputDll>$(TargetDir)openrct2.dll</OutputDll>
<g2Output>$(TargetDir)data\g2.dat</g2Output>
<SignCertificate Condition="'$(SignCertificate)'==''">$(DistDir)windows\code-sign-key-openrct2.org.pfx</SignCertificate>
@@ -75,15 +77,21 @@
<ItemGroup>
<g2Inputs Include="$(RootDir)resources\g2\*" />
<SignItems Include="$(OutputExe)" />
+ <SignItems Include="$(OutputDll)" />
+ <SignItems Include="$(OutputCom)" />
</ItemGroup>
<ItemGroup Label="Symbol Items">
<SymbolItems Include="$(OutputExe)" />
+ <SymbolItems Include="$(OutputCom)" />
+ <SymbolItems Include="$(OutputDll)" />
<SymbolItems Include="$([System.IO.Path]::ChangeExtension($(OutputExe), '.pdb'))" />
</ItemGroup>
<ItemGroup Label="Publish Items">
<PublishItems Include="$(OutputExe)" />
+ <PublishItems Include="$(OutputCom)" />
+ <PublishItems Include="$(OutputDll)" />
<PublishItems Include="$(TargetDir)data" />
<PublishItems Include="$(DistDir)changelog.txt" />
<PublishItems Include="$(DistDir)known_issues.txt" />
@@ -137,6 +145,7 @@
</PropertyGroup>
<ItemGroup>
<CleanItems Condition="'$(Platform)'=='Win32'" Include="$(OutputExe)" />
+ <CleanItems Include="$(OutputCom)" />
<CleanItems Include="$(g2Output)" />
<CleanItems Include="$(ArtifactsDir)openrct2-installer-$(Configuration)-$(Platform)*.exe" />
<CleanItems Include="$(ArtifactsDir)openrct2-portable-$(Configuration)-$(Platform)*.zip" />
@@ -204,6 +213,14 @@
StandardOutputImportance="low" />
</Target>
+ <!-- Target to create openrct2.exe (windows) and openrct2.com (console) -->
+ <Target Name="CreateGUI" DependsOnTargets="Build" AfterTargets="Build" Inputs="$(OutputExe)" Outputs="$(OutputCom)">
+ <Copy SourceFiles="$(OutputExe)" DestinationFiles="$(OutputCom)" />
+ <Exec Command="printf '\x02' | dd of=$(OutputExe) seek=372 bs=1 conv=notrunc count=1"
+ StandardOutputImportance="low"
+ StandardErrorImportance="low" />
+ </Target>
+
<!-- Target to download the title sequences -->
<Target Name="DownloadTitleSequences" AfterTargets="Build">
<DownloadDependency Name="TitleSequences"

0 comments on commit 4d87799

Please sign in to comment.