Add DLL target for windows loading in Python

This commit is contained in:
2024-07-26 13:56:53 +02:00
parent c27c76c644
commit 579bc4bb84
6 changed files with 135 additions and 2 deletions

View File

@ -1,6 +1,5 @@
SOURCES=Makefile main.go main_release.go main_debug.go config.go config_release.go config_template.go
GARBLE_BIN = $(shell go env GOPATH)/bin/garble
GO_ENV_VARS = CGO_ENABLED=0
all: socks5-ssh-proxy
@ -21,6 +20,9 @@ socks5-ssh-proxy.release: resources $(SOURCES)
win: socks5-ssh-proxy.exe
socks5-ssh-proxy.exe: resources $(GARBLE_BIN) $(SOURCES)
GOOS=windows GOARCH=amd64 $(GARBLE_BIN) build -ldflags -H=windowsgui -tags release -o $@
dll: resources
rm -Rf dist
goreleaser build --snapshot
win-package: ChromeProxyHelperPlugin.zip
ChromeProxyHelperPlugin.zip: socks5-ssh-proxy.exe
cp socks5-ssh-proxy.exe chrome_proxy.exe