diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-03-09 14:48:15 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-03-09 14:53:36 +0800 |
| commit | 239cd62103d617f0b2a9d58527843417a0db6ab4 (patch) | |
| tree | 2566d5ce8a5bfae7b92e7c83c011655753b83a0e /gui/win32/scripts/clean.ps1 | |
| parent | e02921ae75d41253406834bd7e214c3c8dec6f9b (diff) | |
Add Win32 GUI for butck_gui.exe
Diffstat (limited to 'gui/win32/scripts/clean.ps1')
| -rw-r--r-- | gui/win32/scripts/clean.ps1 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gui/win32/scripts/clean.ps1 b/gui/win32/scripts/clean.ps1 new file mode 100644 index 0000000..59d9593 --- /dev/null +++ b/gui/win32/scripts/clean.ps1 @@ -0,0 +1,15 @@ +$originalLocation = Get-Location +$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path +Set-Location $scriptPath + +if (!(Test-Path -Path "..\build")) { + Set-Location $originalLocation + exit +} + +Remove-Item "..\build" -Recurse -Force -ErrorAction SilentlyContinue +if (Test-Path -Path "..\.clangd") { + Remove-Item "..\.clangd" -Recurse -Force -ErrorAction SilentlyContinue +} + +Set-Location $originalLocation |
