Skip to content

Commit 10c4ac0

Browse files
committed
release: remove upx to fix execution problem on darwin
1 parent 42ae8ae commit 10c4ac0

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

.goreleaser.yml

+5-18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
before:
22
hooks:
3-
- go get
3+
- go mod download
44
builds:
55
- env:
66
- CGO_ENABLED=0
@@ -9,22 +9,6 @@ builds:
99
goos:
1010
- linux
1111
- darwin
12-
goarch:
13-
- amd64
14-
- arm
15-
- arm64
16-
goarm:
17-
- "6"
18-
- "7"
19-
id: lin
20-
hooks:
21-
post:
22-
- upx "{{ .Path }}"
23-
- env:
24-
- CGO_ENABLED=0
25-
ldflags:
26-
- -X main.version={{.Version}}
27-
goos:
2812
- windows
2913
goarch:
3014
- amd64
@@ -33,7 +17,10 @@ builds:
3317
goarm:
3418
- "6"
3519
- "7"
36-
id: win
20+
id: lin
21+
# hooks:
22+
# post:
23+
# - upx "{{ .Path }}"
3724

3825
archives:
3926
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'

Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tasks:
77
default:
88
cmds:
99
- CGO_ENABLED=0 go build .
10-
- upx -q {{.BINFILE}}
10+
# - upx -q {{.BINFILE}}
1111
# silent: true
1212
method: checksum
1313
generates:

0 commit comments

Comments
 (0)