[Scripts] Update deps.ps1

This commit is contained in:
Connection Refused
2021-10-16 13:08:13 +08:00
parent 63355965f3
commit abf7c8e994

View File

@@ -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