mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 01:12:11 +08:00 
			
		
		
		
	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:
		| @@ -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!" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user