Update build.ps1

This commit is contained in:
Netch
2021-07-20 10:08:06 +08:00
parent 52b5867bd9
commit b42e248709

View File

@@ -24,13 +24,10 @@ param (
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
if (Test-Path -Path "$OutputPath") {
if ( Test-Path -Path "$OutputPath" ) {
rm -Recurse -Force "$OutputPath"
}
if (Test-Path -Path "$OutputPath" -IsValid) {
New-Item -ItemType Directory -Name "$OutputPath" | Out-Null
}
New-Item -ItemType Directory -Name "$OutputPath" | Out-Null
.\deps.ps1 "$OutputPath"
if ( -Not $? ) { exit $lastExitCode }