Update scripts

This commit is contained in:
Netch
2021-07-20 10:05:31 +08:00
parent b25b491d74
commit a4fc19d2f6
9 changed files with 15 additions and 33 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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()

View File

@@ -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

View File

@@ -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
}
}

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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