Build trojan-go

This commit is contained in:
Connection Refused
2021-09-13 00:59:54 +08:00
parent af454a4702
commit d845cea4ac
2 changed files with 19 additions and 0 deletions

19
Other/trojan-go/build.ps1 Normal file
View File

@@ -0,0 +1,19 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/p4gefau1t/trojan-go -b 'v0.10.5' src
if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\trojan-go.exe'
Pop-Location
Pop-Location
exit $lastExitCode

0
Other/trojan-go/deps.ps1 Normal file
View File