Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use project version from Git #94

Merged
merged 1 commit into from
Jun 4, 2023
Merged

Conversation

ccomrade
Copy link
Member

@ccomrade ccomrade commented Jun 4, 2023

  • Removed project version from CMake. Version is now based only on release tags (git describe).
  • Unique short commit hash is included in version strings of non-release builds.
  • Examples of new version strings:
    • v20 (release build)
    • v20-1-g1234567 (dev build with one commit since the last release)
    • v20-1-g1234567-dirty (dev build with one commit since the last release and local uncommitted changes)
  • Added new Lua global variable CRYMP_CLIENT_STRING. The following version variables are available in Lua now:
CRYMP_CLIENT = 19
CRYMP_CLIENT_STRING = "v19-107-g3ed301a"
CRYMP_CLIENT_BITS = "64-bit"
  • Removed problematic BUILD_DATE_TIME. It wasn't updated properly and violated rules of reproducible builds.

@ccomrade ccomrade requested a review from griseraner June 4, 2023 12:07
@ccomrade ccomrade self-assigned this Jun 4, 2023
@griseraner griseraner merged commit 7fe338f into master Jun 4, 2023
3 checks passed
@griseraner griseraner deleted the feature/version-from-git branch June 4, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants