brianstrauch / spotify-cli

Spotify for the terminal
Apache License 2.0
317 stars 16 forks source link

Version auto-updating. Issue #30 #43

Closed OrlovEvgeny closed 3 years ago

OrlovEvgeny commented 3 years ago

Resolve issue https://github.com/brianstrauch/spotify-cli/issues/30 Add ldflags for sets application version (https://goreleaser.com/customization/build/)

example for dev environment:

$ goreleaser release --snapshot --skip-publish --rm-dist
$ ./spotify-cli --version

spotify version v1.9.2-SNAPSHOT-0ebcff2
commit: 0ebcff245e7d750ead4a11e0b1ce50f9c9beb40a
built at: 2021-07-20T20:11:53Z

How to use. (example: https://goreleaser.com/quick-start/) example:

brianstrauch commented 3 years ago

Thank you, this is awesome!