Skip to content

Commit d030203

Browse files
committed
update: best compress upx
1 parent 8f55403 commit d030203

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.goreleaser.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ archives:
2323
format_overrides:
2424
- goos: windows
2525
format: zip
26+
2627
upx:
2728
- enabled: true
29+
compress: best
30+
brute: true
31+
lzma: true
32+
2833

2934
checksum:
3035
name_template: "checksums.txt"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build:
1111

1212
build-static:
1313
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o $(BUILD_DIR)/$(MAIN_PROGRAM_NAME)-linux-static main.go
14-
upx --ultra-brute $(BUILD_DIR)/$(MAIN_PROGRAM_NAME)-linux-static
14+
upx --lzma --brute $(BUILD_DIR)/$(MAIN_PROGRAM_NAME)-linux-static
1515

1616
check-size:
1717
ls -alh $(BUILD_DIR)/$(MAIN_PROGRAM_NAME)*

0 commit comments

Comments
 (0)