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

fix: re-add build date to "About" page #3464

Merged
merged 3 commits into from Jan 7, 2022

Conversation

leon-richardt
Copy link
Collaborator

@leon-richardt leon-richardt commented Jan 4, 2022

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Fixes #3430.

Relevant commit message:

The date of build has previously been provided via a define supplied by
the CI runner. During the migration to GitHub Actions, this seems to
have been missed.

This fix relies on CMake generating and providing the timestamp itself,
and passing it to the binary. Note that the timestamp will be of the
date when the build files were generated, i.e., not when the project
was compiled! For CI runs, however, the date of build file generation
should be consistent with the date of compilation so this approximation
is "good enough" for our purpose.

Note that this only works for CMake-based builds so the QMake builds are out of luck. I won't bother figuring out how to supply the information platform-independently (Windows, macOS, Linux) with QMake. If someone wants to do so, please go ahead.

Commit 3e02e26 (also part of this PR) removes some comments which I felt were redundant, feel free to drop/revert the commit if you think otherwise.

CHANGELOG.md Outdated Show resolved Hide resolved
The date of build has previously been provided via a define supplied by
the CI runner. During the migration to GitHub Actions, this seems to
have been missed.

This fix relies on CMake generating and providing the timestamp itself,
and passing it to the binary. Note that the timestamp will be of the
date when the **build files** were generated, i.e., not when the project
was compiled! For CI runs, however, the date of build file generation
should be consistent with the date of compilation so this approximation
is "good enough" for our purpose.
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
@pajlada pajlada merged commit 42002d8 into Chatterino:master Jan 7, 2022
@leon-richardt leon-richardt deleted the fix/build-date branch January 7, 2022 17:40
zneix added a commit to SevenTV/chatterino7 that referenced this pull request Jan 10, 2022
Now we're on commit dfa3818; Changes from upstream we've pulled

- Bugfix: Re-add date of build to the "About" page on nightly versions. (Chatterino#3464)
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.

Fix "version.dateOfBuild" implementation for Nightly builds
4 participants