Skip to content

Commit a63f1cb

Browse files
committed
Add checksum config to GoReleaser and set CLI version info
1 parent 42c17be commit a63f1cb

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.goreleaser.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ archives:
5959
- README.md
6060
- contrib/systemd/keylightd.service
6161

62+
checksum:
63+
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
64+
extra_files:
65+
- glob: ./artifacts/keylightd-tray/*.tar.gz
66+
6267
changelog:
6368
sort: asc
6469
filters:

cmd/keylightd/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ var (
2525

2626
func main() {
2727
rootCmd := &cobra.Command{
28-
Use: "keylightd",
29-
Short: "Key Light Daemon",
28+
Use: "keylightd",
29+
Short: "Key Light Daemon",
30+
Version: fmt.Sprintf("%s (commit: %s, built: %s)", version, commit, buildDate),
3031
RunE: func(cmd *cobra.Command, args []string) error {
3132
v := viper.New()
3233
v.SetEnvPrefix("KEYLIGHT")

0 commit comments

Comments
 (0)