Skip to content

Commit

Permalink
win console
Browse files Browse the repository at this point in the history
  • Loading branch information
lz1998 committed Jul 28, 2021
1 parent 867d9da commit c6aef62
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@ env:
before:
hooks:
- go mod tidy
release:
draft: true
name_template: "{{.ProjectName}}-{{.Tag}}"
builds:
- id: nowin
- id: console
main: ./service/gmc
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
Expand All @@ -24,6 +28,10 @@ builds:
goarch: arm
- goos: darwin
goarch: 386
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
Expand All @@ -32,7 +40,7 @@ builds:
hooks:
post:
- upx "{{ .Path }}"
- id: win
- id: lorca
main: ./service/gmc_lorca
env:
- CGO_ENABLED=0
Expand All @@ -56,21 +64,20 @@ checksum:
changelog:
skip: true
archives:
- id: binary
- id: lorca
builds:
- win
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
- lorca
name_template: "{{ .ProjectName }}_lorca_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
format: binary
- id: nowin
- id: console
builds:
- nowin
- win
- console
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
format: zip
format: binary

nfpms:
- license: AGPL 3.0
Expand Down

0 comments on commit c6aef62

Please sign in to comment.