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 ef33eca
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 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 All @@ -176,8 +176,8 @@ archives:
- linux-amd64
- linux-arm64
- darwin-universal
- windows-amd64
# - linux-armhf
# - windows-amd64
# - windows-386
# - windows-arm64
name_template: >-
Expand Down

0 comments on commit ef33eca

Please sign in to comment.