mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
[Other] Update build.ps1
This commit is contained in:
@@ -3,14 +3,28 @@ Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
.\clean.ps1
|
||||
|
||||
Get-ChildItem -Path '.' -Directory | ForEach-Object {
|
||||
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
$name=$_.Name
|
||||
|
||||
Write-Host "Building $name"
|
||||
& ".\$name\build.ps1"
|
||||
if ( Test-Path ".\$name\build.ps1" ) {
|
||||
Write-Host "Building $name"
|
||||
|
||||
if ( -Not $? ) {
|
||||
Write-Host "Build $name failed"
|
||||
exit $lastExitCode
|
||||
& ".\$name\build.ps1"
|
||||
if ( -Not $? ) {
|
||||
Write-Host "Build $name failed"
|
||||
exit $lastExitCode
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Get-ChildItem -Path '.' -Directory | ForEach-Object {
|
||||
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
$name=$_.Name
|
||||
|
||||
if ( Test-Path ".\$name\src" ) {
|
||||
rm -Recurse -Force ".\$name\src"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user