fluffy-critter / bandcrash

Bandcamp-style batch encoder and web player for independent musicians
MIT License
57 stars 0 forks source link

Build system: generate __version__ as a build-tool #80

Closed fluffy-critter closed 1 year ago

fluffy-critter commented 1 year ago

Instead of the Makefile hack, the __version__ generation should be a build-tool, which runs at every build/install/etc., and the file perhaps should not even be checked in.

The emitted version number could then include a tag like -local or -68b4de (i.e. the git shorthash) based on whether it matches HEAD on origin/main or the like.