mirror of
https://github.com/grdl/git-get.git
synced 2026-02-10 14:19:18 +00:00
Move the version metadata to cfg packageThis way it can be used by multiple binaries.
This commit is contained in:
@@ -3,20 +3,29 @@ before:
|
||||
- go mod download
|
||||
|
||||
builds:
|
||||
- main: ./cmd/main.go
|
||||
binary: "git-get"
|
||||
- id: git-list
|
||||
main: ./cmd/list/main.go
|
||||
binary: git-list
|
||||
ldflags:
|
||||
- -s -w
|
||||
- -X git-get/pkg/cfg.version={{.Version}}
|
||||
- -X git-get/pkg/cfg.commit={{.Commit}}
|
||||
- -X git-get/pkg/cfg.date={{.Date}}
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
- windows
|
||||
|
||||
archives:
|
||||
- replacements:
|
||||
darwin: macOS
|
||||
linux: Linux
|
||||
windows: Windows
|
||||
386: i386
|
||||
amd64: x86_64
|
||||
- id: archive
|
||||
builds:
|
||||
- git-list
|
||||
replacements:
|
||||
darwin: macOS
|
||||
linux: Linux
|
||||
windows: Windows
|
||||
386: i386
|
||||
amd64: x86_64
|
||||
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
|
||||
Reference in New Issue
Block a user