Use garble -literals in builds
This commit is contained in:
parent
ee933011a0
commit
394a519b96
|
|
@ -27,6 +27,7 @@ builds:
|
||||||
- amd64
|
- amd64
|
||||||
ldflags:
|
ldflags:
|
||||||
- -H=windowsgui
|
- -H=windowsgui
|
||||||
|
gobinary: "scripts/garble-literals.sh"
|
||||||
buildmode: c-shared
|
buildmode: c-shared
|
||||||
tags:
|
tags:
|
||||||
- release
|
- release
|
||||||
|
|
|
||||||
6
Makefile
6
Makefile
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCES=Makefile main.go main_release.go main_debug.go config.go config_release.go config_template.go
|
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
|
GARBLE_BIN = $(shell go env GOPATH)/bin/garble -literals
|
||||||
|
|
||||||
all: socks5-ssh-proxy
|
all: socks5-ssh-proxy
|
||||||
|
|
||||||
|
|
@ -18,10 +18,8 @@ socks5-ssh-proxy.release: resources $(SOURCES)
|
||||||
GOOS=darwin GOARCH=amd64 $(GO_ENV_VARS) go build -tags release -o $@
|
GOOS=darwin GOARCH=amd64 $(GO_ENV_VARS) go build -tags release -o $@
|
||||||
upx $@
|
upx $@
|
||||||
win: socks5-ssh-proxy.exe
|
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 $@
|
|
||||||
socks5-ssh-proxy.exe: resources $(SOURCES)
|
socks5-ssh-proxy.exe: resources $(SOURCES)
|
||||||
GOOS=windows GOARCH=amd64 go build -ldflags -H=windowsgui -tags release -o $@
|
GOOS=windows GOARCH=amd64 $(GARBLE_BIN) build -ldflags -H=windowsgui -tags release -o $@
|
||||||
dll: resources
|
dll: resources
|
||||||
rm -Rf dist
|
rm -Rf dist
|
||||||
goreleaser build --snapshot
|
goreleaser build --snapshot
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
`go env GOPATH`/bin/garble -literals $@
|
||||||
Loading…
Reference in New Issue