mmitch / gbsplay

gameboy sound player
https://mmitch.github.io/gbsplay/
Other
98 stars 20 forks source link

gbsplay -V shows no version number when built from GitHub tarball #118

Closed mmitch closed 7 months ago

mmitch commented 7 months ago

@mrehkopf recently stumbled over gbsplay from Ubuntu showing an empty version string with gbsplay -V.

This might result from using the GitHub-provided release tarball:

Possible solutions:

  1. We could remove the default tarballs created by git from the release pages and add our make dist tarballs instead. But this would not fix missing version information in "download code".

  2. As a fallback we could try to parse the latest release entry from README.md and declare the version number as version+X or version+? (because we don't know if we are exactly at the released version or some commits after that).

I want to investigate the second option via this bug.

mmitch commented 7 months ago

The version number does get generated on every configure run. While this does not change the version during a local edit ... compile ... edit ... compile cycle, it should work for all kinds of packaging scripts.

Now if we somehow could ensure a fresh configure run after every git pull, that would be nice.

mrehkopf commented 7 months ago

Also GitHub puts the commit ID in the comment fields of the tarball and zip(...ball?) but we can't expect those to be in any known location either...