mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
28 lines
550 B
PowerShell
28 lines
550 B
PowerShell
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
|
|
|
.\clean.ps1
|
|
|
|
Get-ChildItem -Path '.' -Directory | ForEach-Object {
|
|
$name=$_.Name
|
|
|
|
Write-Host "Building $name"
|
|
& ".\$name\build.ps1"
|
|
|
|
if ( -Not $? ) {
|
|
Write-Host "Build $name failed"
|
|
exit $lastExitCode
|
|
}
|
|
}
|
|
|
|
Write-Host
|
|
|
|
Get-ChildItem -Path '.\release' -File | ForEach-Object {
|
|
$name=$_.Name
|
|
$hash=(Get-FileHash ".\release\$name" -Algorithm SHA256).Hash.ToLower()
|
|
|
|
Write-Host "$hash $name"
|
|
}
|
|
|
|
Pop-Location
|
|
exit 0
|