mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
[Other] Update build.ps1
This commit is contained in:
@@ -2,9 +2,8 @@ Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
|||||||
|
|
||||||
.\clean.ps1
|
.\clean.ps1
|
||||||
|
|
||||||
|
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||||
Get-ChildItem -Path '.' -Directory | ForEach-Object {
|
Get-ChildItem -Path '.' -Directory | ForEach-Object {
|
||||||
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
|
||||||
|
|
||||||
$name=$_.Name
|
$name=$_.Name
|
||||||
|
|
||||||
if ( Test-Path ".\$name\build.ps1" ) {
|
if ( Test-Path ".\$name\build.ps1" ) {
|
||||||
@@ -16,20 +15,24 @@ Get-ChildItem -Path '.' -Directory | ForEach-Object {
|
|||||||
exit $lastExitCode
|
exit $lastExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||||
Get-ChildItem -Path '.' -Directory | ForEach-Object {
|
Get-ChildItem -Path '.' -Directory | ForEach-Object {
|
||||||
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
|
||||||
|
|
||||||
$name=$_.Name
|
$name=$_.Name
|
||||||
|
|
||||||
if ( Test-Path ".\$name\src" ) {
|
if ( Test-Path ".\$name\src" ) {
|
||||||
rm -Recurse -Force ".\$name\src"
|
rm -Recurse -Force ".\$name\src"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host
|
Write-Host
|
||||||
|
|
||||||
|
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||||
Get-ChildItem -Path '.\release' -File | ForEach-Object {
|
Get-ChildItem -Path '.\release' -File | ForEach-Object {
|
||||||
$name=$_.Name
|
$name=$_.Name
|
||||||
$hash=(Get-FileHash ".\release\$name" -Algorithm SHA256).Hash.ToLower()
|
$hash=(Get-FileHash ".\release\$name" -Algorithm SHA256).Hash.ToLower()
|
||||||
|
|||||||
Reference in New Issue
Block a user