diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 18aacca..eae56f4 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -1,7 +1,10 @@ -Remove-Item -Force -Recurse build -Remove-Item -Force -Recurse dist -Remove-Item -Force -Recurse output -Remove-Item -Force -Recurse Output -$ErrorActionPreference = 'Stop' +if (Test-Path -Path build -PathType Container) { + Remove-Item -Force -Recurse build +} + +if (Test-Path -Path dist -PathType Container) { + Remove-Item -Force -Recurse dist +} + # pyinstaller --name pointer-cc --icon ./resources/icon.icns --windowed main.py pyinstaller --name pointer-cc --windowed main.py