mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Update scripts
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
Push-Location $exec
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
$Env:CGO_ENABLED="0"
|
||||
$Env:GOROOT_FINAL="/usr"
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
Push-Location $exec
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
rm -Force go.*
|
||||
go mod init aiodns
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
Push-Location $exec
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
.\clean.ps1
|
||||
|
||||
Get-ChildItem -Path . -Directory | ForEach-Object {
|
||||
Get-ChildItem -Path '.' -Directory | ForEach-Object {
|
||||
$name=$_.Name
|
||||
|
||||
Write-Host "Building $name"
|
||||
@@ -18,7 +16,7 @@ Get-ChildItem -Path . -Directory | ForEach-Object {
|
||||
|
||||
Write-Host
|
||||
|
||||
Get-ChildItem -Path .\release -File | ForEach-Object {
|
||||
Get-ChildItem -Path '.\release' -File | ForEach-Object {
|
||||
$name=$_.Name
|
||||
$hash=(Get-FileHash ".\release\$name" -Algorithm SHA256).Hash.ToLower()
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
Push-Location $exec
|
||||
|
||||
if (Test-Path release) {
|
||||
Remove-Item -Recurse -Force release
|
||||
if (Test-Path 'release') {
|
||||
rm -Recurse -Force 'release'
|
||||
}
|
||||
|
||||
Pop-Location
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
Push-Location $exec
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
.\clean.ps1
|
||||
|
||||
Get-ChildItem -Path . -Directory | ForEach-Object {
|
||||
Get-ChildItem -Path '.' -Directory | ForEach-Object {
|
||||
$name=$_.Name
|
||||
& ".\$name\deps.ps1"
|
||||
|
||||
if (-Not $?) {
|
||||
if ( -Not $? ) {
|
||||
exit $lastExitCode
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
Push-Location $exec
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
$Env:CGO_ENABLED="0"
|
||||
$Env:GOROOT_FINAL="/usr"
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
Push-Location $exec
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
rm -Force go.*
|
||||
go mod init tap2socks
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
Push-Location $exec
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
$Env:CGO_ENABLED="0"
|
||||
$Env:GOROOT_FINAL="/usr"
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
Push-Location $exec
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
rm -Force go.*
|
||||
go mod init tun2socks
|
||||
|
||||
Reference in New Issue
Block a user