mirror of
https://github.com/netchx/netch.git
synced 2026-04-01 19:15:09 +08:00
27 lines
639 B
PowerShell
27 lines
639 B
PowerShell
param (
|
|
[string]
|
|
$OutputPath = 'release'
|
|
)
|
|
|
|
if ( -Not (Test-Path -Path "$OutputPath") ) {
|
|
New-Item -ItemType Directory -Name "$OutputPath" | Out-Null
|
|
}
|
|
|
|
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 |