Files
netch/deps.ps1
2021-07-16 06:00:50 +08:00

35 lines
768 B
PowerShell

param (
[string]
$OutputPath = 'release'
)
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\base -File | ForEach-Object {
# $name=$_.Name
# Write-Host "Executing $name"
# & "..\scripts\deps\base\$name"
# if (-Not $?) {
# Pop-Location
# exit $lastExitCode
# }
# }
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