Skip to content

Commit

Permalink
build(goreleaser): enable windows-amd64 with UPX-compression
Browse files Browse the repository at this point in the history
related: #4
  • Loading branch information
xendarboh committed Nov 13, 2024
1 parent 25e5604 commit 3fd6124
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,20 @@ builds:
ldflags:
- -v # verbose is useful

# - id: windows-amd64
# binary: walletshield
# main: ./apps/walletshield
# goarch:
# - amd64
# goos:
# - windows
# env:
# - CC=x86_64-w64-mingw32-gcc
# - CXX=x86_64-w64-mingw32-g++
# flags:
# - -trimpath
# - -buildmode=exe
- id: windows-amd64
binary: walletshield
main: ./apps/walletshield
goarch:
- amd64
goos:
- windows
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_LDFLAGS="-Wl,--allow-multiple-definition"
flags:
- -trimpath
- -buildmode=exe

# - id: windows-386
# binary: walletshield
Expand Down Expand Up @@ -154,9 +155,8 @@ builds:
# - -buildmode=exe

upx:
-
enabled: true
goos: [linux, darwin]
- enabled: true
goos: [linux, darwin, windows]
goarch: [arm64, amd64]
compress: best
lzma: true
Expand Down

0 comments on commit 3fd6124

Please sign in to comment.