mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
[Scripts] Update deps.ps1
This commit is contained in:
14
deps.ps1
14
deps.ps1
@@ -3,7 +3,7 @@ param (
|
||||
$OutputPath = 'release'
|
||||
)
|
||||
|
||||
if ( -Not (Test-Path -Path "$OutputPath") ) {
|
||||
if ( -Not ( Test-Path -Path "$OutputPath" ) ) {
|
||||
New-Item -ItemType Directory -Name "$OutputPath" | Out-Null
|
||||
}
|
||||
|
||||
@@ -11,17 +11,5 @@ Push-Location "$OutputPath"
|
||||
New-Item -ItemType Directory -Name 'bin' | Out-Null
|
||||
New-Item -ItemType Directory -Name 'mode' | Out-Null
|
||||
New-Item -ItemType Directory -Name 'i18n' | Out-Null
|
||||
|
||||
Get-ChildItem -Path '..\scripts\deps' -File | ForEach-Object {
|
||||
$name=$_.Name
|
||||
|
||||
Write-Host "Executing $name"
|
||||
& "..\scripts\deps\$name" -OutputPath 'bin'
|
||||
if ( -Not $? ) {
|
||||
Pop-Location
|
||||
exit $lastExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Pop-Location
|
||||
exit 0
|
||||
Reference in New Issue
Block a user