mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-10 20:05:50 +02:00
add platform/os details to goreleaser ldflags
This commit is contained in:
parent
f025b289f0
commit
41171304b2
2 changed files with 7 additions and 1 deletions
5
main.go
5
main.go
|
@ -15,6 +15,9 @@ var (
|
|||
commit string
|
||||
version = "unversioned"
|
||||
date string
|
||||
goos string
|
||||
arch string
|
||||
arm string
|
||||
|
||||
debuggingFlag = flag.Bool("debug", false, "a boolean")
|
||||
versionFlag = flag.Bool("v", false, "Print the current version")
|
||||
|
@ -43,7 +46,7 @@ func main() {
|
|||
version = fallbackVersion()
|
||||
}
|
||||
if *versionFlag {
|
||||
fmt.Printf("commit=%s, build date=%s, version=%s\n", commit, date, version)
|
||||
fmt.Printf("commit=%s, build date=%s, version=%s, os=%s, arch=%s, arm=%s\n", commit, date, version, goos, arch, arm)
|
||||
os.Exit(0)
|
||||
}
|
||||
appConfig, err := config.NewAppConfig("lazygit", version, commit, date, debuggingFlag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue