From 27240995f4ce6a45a366223df8047500eeaf0cd7 Mon Sep 17 00:00:00 2001 From: Jackbennett Date: Wed, 14 Oct 2015 12:59:20 +0100 Subject: [PATCH] Let developers without VS installed test build scripts Developers can test the build process without needing to recompile a new launcher exe. This saves some setup steps to get a new developer started. Also warn that this build can't be release as by definition it can't be fully tested. --- scripts/build.ps1 | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 937818d..3700deb 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -50,7 +50,10 @@ Param( [string]$config = "..\config", # Include git with the package build - [switch]$Full + [switch]$Full, + + # New launcher if you have MSBuild tools installed + [switch]$Compile ) . "$PSScriptRoot\utils.ps1" @@ -105,8 +108,13 @@ if ($ConEmuXml -ne "") { Pop-Location -Push-Location -Path $launcher -msbuild CmderLauncher.vcxproj /p:configuration=Release -Pop-Location +if($Compile) { + Push-Location -Path $launcher + msbuild CmderLauncher.vcxproj /p:configuration=Release + Pop-Location +} else { + Write-Warning "You are not building a launcher, Use -Complie" + Write-Warning "This cannot be a release. Test build only!" +} Write-Verbose "All good and done!"