-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.ps1
More file actions
29 lines (25 loc) · 744 Bytes
/
Copy pathdebug.ps1
File metadata and controls
29 lines (25 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
param(
[string]$VcpkgTriplet = "x64-windows-static"
)
Write-Host "Building in Debug mode..." -ForegroundColor Blue
& .\build.ps1 -BuildType Debug -VcpkgTriplet $VcpkgTriplet
if ($LASTEXITCODE -ne 0) {
Write-Host ""
Write-Host "Build failed!" -ForegroundColor Red
exit 1
}
$exePath = ".\build\bin\Debug\Discove.exe"
if (Test-Path $exePath) {
& $exePath
$exitCode = $LASTEXITCODE
Write-Host ""
if ($exitCode -eq 0) {
Write-Host "Application exited successfully." -ForegroundColor Green
} else {
Write-Host "Application exited with code: $exitCode" -ForegroundColor Yellow
}
} else {
Write-Host ""
Write-Host "Executable not found at: $exePath" -ForegroundColor Red
exit 1
}