build: remove UPX compression (antivirus false positives, startup penalty)
This commit is contained in:
parent
61b44fe86f
commit
9cc806d11f
2 changed files with 0 additions and 9 deletions
|
|
@ -19,12 +19,6 @@ builds:
|
|||
- -X github.com/torrentclaw/torrentclaw-cli/internal/cmd.Version={{.Version}}
|
||||
- -X github.com/torrentclaw/torrentclaw-cli/internal/sentry.dsn={{ .Env.SENTRY_DSN }}
|
||||
|
||||
upx:
|
||||
- enabled: true
|
||||
goos:
|
||||
- linux
|
||||
- windows
|
||||
|
||||
archives:
|
||||
- format: tar.gz
|
||||
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
||||
|
|
|
|||
3
Makefile
3
Makefile
|
|
@ -10,9 +10,6 @@ all: fmt vet lint test build
|
|||
build:
|
||||
go build -ldflags '$(LDFLAGS)' -trimpath -o $(BINARY) ./cmd/unarr/
|
||||
|
||||
## Build small binary (stripped + UPX compressed, ~5MB)
|
||||
build-small: build
|
||||
@command -v upx >/dev/null 2>&1 && upx --best -q $(BINARY) || echo "upx not installed — install with: brew install upx"
|
||||
|
||||
## Run all tests
|
||||
test:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue