From 579e8e6403818537a1e4d763a707cb759f76aca1 Mon Sep 17 00:00:00 2001 From: Jerry Jacobs Date: Wed, 31 Jul 2024 16:01:42 +0200 Subject: [PATCH] Makefile: win target creates dist/chrome_proxy.exe --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e48eab2..85d324f 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,9 @@ socks5-ssh-proxy: $(SOURCES) socks5-ssh-proxy.release: resources $(SOURCES) $(GARBLE_BIN) GOOS=darwin GOARCH=amd64 $(GARBLE_CMD) build -tags release -o $@ upx $@ -win: socks5-ssh-proxy.exe +win: dist/chrome_proxy.exe +dist/chrome_proxy.exe: socks5-ssh-proxy.exe + cp -v $< $@ socks5-ssh-proxy.exe: resources $(GOVERSIONINFO_BIN) $(SOURCES) CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go generate -tags windows,release CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "-s -w -H=windowsgui" -tags windows,release -o $@