Notepad3/Build/scripts/Clean.ps1
Derick Payne 20c2d857b1 Add ARM64 configuration support and build scripts
- Add ARM64 configurations to all project files (vcxproj)
- Add build scripts (Build_ARM64.cmd, Build_x64.cmd, etc.)
- Add ARM64 fix scripts for OutDir, CrossCompile, and CETCompat issues
- Update Notepad3.sln with ARM64 platform configurations
2026-01-19 02:12:15 +02:00

23 lines
766 B
PowerShell

# Clean All Build Outputs
# Usage: .\Clean.ps1
$ErrorActionPreference = "Stop"
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$RepoRoot = Split-Path -Parent $ScriptDir
$BinDir = Join-Path $RepoRoot "Bin"
Write-Host "Cleaning build outputs..." -ForegroundColor Yellow
Write-Host "Bin directory: $BinDir" -ForegroundColor Cyan
if (Test-Path $BinDir) {
$dirs = Get-ChildItem -Path $BinDir -Directory
foreach ($dir in $dirs) {
Write-Host " Removing: $($dir.Name)" -ForegroundColor Gray
Remove-Item -Path $dir.FullName -Recurse -Force -ErrorAction SilentlyContinue
}
Write-Host "Clean completed!" -ForegroundColor Green
}
else {
Write-Host "Bin directory does not exist - nothing to clean." -ForegroundColor Yellow
}