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.
This commit is contained in:
Jackbennett 2015-10-14 12:59:20 +01:00
parent 0051614e4b
commit 27240995f4

View File

@ -50,7 +50,10 @@ Param(
[string]$config = "..\config", [string]$config = "..\config",
# Include git with the package build # Include git with the package build
[switch]$Full [switch]$Full,
# New launcher if you have MSBuild tools installed
[switch]$Compile
) )
. "$PSScriptRoot\utils.ps1" . "$PSScriptRoot\utils.ps1"
@ -105,8 +108,13 @@ if ($ConEmuXml -ne "") {
Pop-Location Pop-Location
Push-Location -Path $launcher if($Compile) {
msbuild CmderLauncher.vcxproj /p:configuration=Release Push-Location -Path $launcher
Pop-Location 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!" Write-Verbose "All good and done!"