fix: build

This commit is contained in:
Netch
2021-07-10 14:30:10 +08:00
parent 00c8670490
commit fdc72e67f0
5 changed files with 18 additions and 3 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
/.vs
/.idea
/release
/packages
/TestResults

View File

@@ -1,4 +1,7 @@
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
$last=(Get-Location).Path
Set-Location $exec
.\clean.ps1
@@ -14,4 +17,5 @@ Get-ChildItem -Path . -Directory | ForEach-Object {
}
}
Set-Location $last
exit 0

View File

@@ -1,7 +1,11 @@
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
$last=(Get-Location).Path
Set-Location $exec
if (Test-Path release) {
Remove-Item -Recurse -Force release
}
Set-Location $last
exit 0

View File

@@ -1,4 +1,7 @@
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
$last=(Get-Location).Path
Set-Location $exec
.\clean.ps1
@@ -11,4 +14,5 @@ Get-ChildItem -Path . -Directory | ForEach-Object {
}
}
Set-Location $last
exit 0

View File

@@ -22,6 +22,8 @@ param (
$PublishSingleFile = $True
)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
.\Other\build.ps1
if ( -Not $? ) { exit $lastExitCode }