From c9eb496672e8eda025c5f20de571e5bbdb281a41 Mon Sep 17 00:00:00 2001 From: Vinicius Fortuna Date: Fri, 12 Apr 2024 14:42:15 -0400 Subject: [PATCH] Fix --- client/src/tun2socks/Taskfile.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/tun2socks/Taskfile.yml b/client/src/tun2socks/Taskfile.yml index 6d8be8880f..1f24ed74c3 100644 --- a/client/src/tun2socks/Taskfile.yml +++ b/client/src/tun2socks/Taskfile.yml @@ -19,14 +19,13 @@ tasks: TUN2SOCKS_VERSION: "v1.16.11" OUTPUT: '{{.OUT_DIR}}/{{.TARGET_OS}}/tun2socks{{if eq .TARGET_OS "windows"}}.exe{{end}}' cmds: - - echo "{{.OS}}" - rm -rf "{{dir .OUTPUT}}" && mkdir -p "{{dir .OUTPUT}}" # Linker flags: https://pkg.go.dev/cmd/link # -s Omit the symbol table and debug information. # -w Omit the DWARF symbol table. # -X Set the value of the string variable. - | - {{if ne OS TARGET_OS -}} + {{if ne OS .TARGET_OS -}} GOOS={{.TARGET_OS}} GOARCH=amd64 CGO_ENABLED=1 CC='zig cc -target x86_64-{{.TARGET_OS}}' {{- end}} \ go build -trimpath -ldflags="-s -w -X=main.version={{.TUN2SOCKS_VERSION}}" -o '{{.OUTPUT}}' '{{.TASKFILE_DIR}}/outline/electron'