[Other] Update scripts

This commit is contained in:
Connection Refused
2021-09-26 21:29:54 +08:00
parent f80b64b368
commit 220c58600e
25 changed files with 29 additions and 126 deletions

View File

@@ -1,4 +1,4 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
$Env:CGO_ENABLED='1'
$Env:GOROOT_FINAL='/usr'
@@ -6,6 +6,4 @@ $Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -buildmode=c-shared -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\release\aiodns.bin'
Pop-Location
exit $lastExitCode

View File

@@ -1,11 +1,10 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/cbeuw/Cloak -b 'v2.5.5' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
@@ -13,9 +12,4 @@ $Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\ck-client.exe' '.\cmd\ck-client'
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode

View File

View File

@@ -1,11 +1,10 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/AdguardTeam/dnsproxy -b 'v0.39.5' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
@@ -13,9 +12,4 @@ $Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\dnsproxy.exe'
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode

View File

@@ -1,22 +1,10 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/shadowsocks/libev -b 'mingw' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
msys2 ..\build.sh
if ( -Not $? ) {
Pop-Location
rm -Recurse -Force src
exit $lastExitCode
}
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode

View File

@@ -1,24 +1,15 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/shadowsocks/shadowsocks-rust -b 'v1.11.2' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
cargo build --release
if ( -Not $? ) {
Pop-Location
rm -Recurse -Force src
exit $lastExitCode
}
cp -Force '.\target\release\sslocal.exe' '..\..\release\ss-local.exe'
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode
exit 0

View File

@@ -1,24 +1,15 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/shadowsocksrr/shadowsocksr-libev -b 'Akkariiin/develop' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
msys2 ..\build.sh
if ( -Not $? ) {
Pop-Location
rm -Recurse -Force src
exit $lastExitCode
}
cp -Force '.\ss-local.exe' '..\..\release\ssr-local.exe'
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode
exit 0

View File

@@ -1,24 +1,15 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/shadowsocks/simple-obfs src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
msys2 ..\build.sh
if ( -Not $? ) {
Pop-Location
rm -Recurse -Force src
exit $lastExitCode
}
cp -Force '.\simple-obfs.exe' '..\..\release\simple-obfs.exe'
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode
exit 0

View File

@@ -1,11 +1,10 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/p4gefau1t/trojan-go -b 'v0.10.6' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
@@ -13,9 +12,4 @@ $Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -tags 'full' -o '..\..\release\trojan-go.exe'
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode

View File

@@ -1,11 +1,10 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/xjasonlyu/tun2socks -b 'v2.3.0' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
@@ -13,9 +12,4 @@ $Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\tun2socks.exe'
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode

View File

@@ -1,11 +1,10 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/v2fly/v2ray-core -b 'v4.42.2' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
@@ -14,26 +13,13 @@ $Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -o '..\..\release\v2ray.exe' '.\main'
if ( -Not $? ) {
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode
}
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -tags confonly -o '..\..\release\v2ctl.exe' '.\infra\control\main'
if ( -Not $? ) {
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode
}
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid= -H windowsgui' -o '..\..\release\wv2ray.exe' '.\main'
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode

View File

@@ -1,11 +1,10 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/teddysun/v2ray-plugin -b 'v4.42.2' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
@@ -13,9 +12,4 @@ $Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\v2ray-plugin.exe'
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode

View File

@@ -1,11 +1,10 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/xtls/xray-core -b 'v1.4.5' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
@@ -13,9 +12,4 @@ $Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -o '..\..\release\xray.exe' '.\main'
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode
exit $lastExitCode

View File

@@ -1,11 +1,10 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/teddysun/xray-plugin -b 'v1.4.5' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Set-Location src
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
@@ -13,9 +12,4 @@ $Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\xray-plugin.exe'
Pop-Location
rm -Recurse -Force src
Pop-Location
exit $lastExitCode