[PR #363] Add --version command #1208

Open
opened 2026-01-29 17:00:18 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/363

State: closed
Merged: Yes


This PR adds the necessary functionality for a new --version option, as requested in #355.

  • Adds a library for calculating SHA256 over the live running executable
  • Adds a header file with the Git commit & build date
  • Adds pre-build(.bat/.sh) script that creates the header file when called. This uses the current date and either one of git rev-parse HEAD, .git/HEAD or .git/refs/master depending on availability. Defaults to "Unknown" if no .git directory is present.
  • Updates the build scripts (and VS project) to include a call to the pre-build script before compilation starts

Closes #355.

**Original Pull Request:** https://github.com/CCExtractor/ccextractor/pull/363 **State:** closed **Merged:** Yes --- This PR adds the necessary functionality for a new --version option, as requested in #355. - Adds a library for calculating SHA256 over the live running executable - Adds a header file with the Git commit & build date - Adds pre-build(.bat/.sh) script that creates the header file when called. This uses the current date and either one of `git rev-parse HEAD`, `.git/HEAD` or `.git/refs/master` depending on availability. Defaults to "Unknown" if no .git directory is present. - Updates the build scripts (and VS project) to include a call to the pre-build script before compilation starts Closes #355.
claunia added the pull-request label 2026-01-29 17:00:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#1208