mirror of
https://github.com/netchx/netch.git
synced 2026-05-01 22:19:37 +08:00
14 lines
298 B
PowerShell
14 lines
298 B
PowerShell
$exec=(Split-Path $MyInvocation.MyCommand.Path -Parent)
|
|
|
|
Push-Location $exec
|
|
|
|
$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\tun2socks.exe"
|
|
|
|
Pop-Location
|
|
exit $lastExitCode
|