Skip to content

Commit ef33eca

Browse files
committed
build(goreleaser): enable windows-amd64 with UPX-compression
related: #4
1 parent 25e5604 commit ef33eca

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.goreleaser.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,20 @@ builds:
111111
ldflags:
112112
- -v # verbose is useful
113113

114-
# - id: windows-amd64
115-
# binary: walletshield
116-
# main: ./apps/walletshield
117-
# goarch:
118-
# - amd64
119-
# goos:
120-
# - windows
121-
# env:
122-
# - CC=x86_64-w64-mingw32-gcc
123-
# - CXX=x86_64-w64-mingw32-g++
124-
# flags:
125-
# - -trimpath
126-
# - -buildmode=exe
114+
- id: windows-amd64
115+
binary: walletshield
116+
main: ./apps/walletshield
117+
goarch:
118+
- amd64
119+
goos:
120+
- windows
121+
env:
122+
- CC=x86_64-w64-mingw32-gcc
123+
- CXX=x86_64-w64-mingw32-g++
124+
- CGO_LDFLAGS="-Wl,--allow-multiple-definition"
125+
flags:
126+
- -trimpath
127+
- -buildmode=exe
127128

128129
# - id: windows-386
129130
# binary: walletshield
@@ -154,9 +155,8 @@ builds:
154155
# - -buildmode=exe
155156

156157
upx:
157-
-
158-
enabled: true
159-
goos: [linux, darwin]
158+
- enabled: true
159+
goos: [linux, darwin, windows]
160160
goarch: [arm64, amd64]
161161
compress: best
162162
lzma: true
@@ -176,8 +176,8 @@ archives:
176176
- linux-amd64
177177
- linux-arm64
178178
- darwin-universal
179+
- windows-amd64
179180
# - linux-armhf
180-
# - windows-amd64
181181
# - windows-386
182182
# - windows-arm64
183183
name_template: >-

0 commit comments

Comments
 (0)