Uh oh!
There was an error while loading. Please reload this page.
Versioning improvements - #768
Conversation
ReenigneArcher
left a comment
There was a problem hiding this comment.
Could you also move version.h.in to ./src, and rename to version.h.
I might be wrong, but I think if we put it in ./src we won't even need to configure this file in CMakeLists.txt like I set it up originally.
Also, there's a small typo in line 8 of version.h.in, PROJECT_VER_PATCH.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've moved the file but kept the suffix, since the file is an intermediate source file. version.h is generated by Cmake
Fixed |
TheElixZammuto
commented
Jan 28, 2023
It seems I've broke the build, fixing this |
TheElixZammuto
commented
Jan 28, 2023
Build should be fixed now! |
ReenigneArcher
commented
Jan 28, 2023
Great! Just a few indentations to fix now in |
ef502c9 to
7b7f9a0CompareReenigneArcher
commented
Jan 28, 2023
When I updated the branch, I did so with a re-base and it removed the merge commits. I didn't know that would happen, but now I have a question. Is this going to work reliably when building nightly builds (or PR builds), as we don't typically merge |
TheElixZammuto
commented
Jan 29, 2023
The PR uses git for tag handling (it uses the |
Update Nightly
TheElixZammuto
commented
Feb 4, 2023
The PR has now been updated to use the version number inside the CMakeLists.txt. |
Uh oh!
There was an error while loading. Please reload this page.
@TheElixZammuto Todo:
|
41dffbf to
0658549Compare0658549 to
8a2d218CompareReenigneArcher
commented
Mar 8, 2023
@TheElixZammuto I fixed a couple of things in the builds, but still getting a dirty git tree in the docker builds. Any idea? I suppose it's not copying the |
…unshine-1 into versioning-improvements
5faf1df to
d6b8c19Compared6b8c19 to
1357d7dCompare03c7235 to
70ef55fCompare70ef55f to
268c5e1Compare
Description
This PR adds an improved versioning system.
CMake has been modified to add support to https://github.com/nocnokneo/cmake-git-versioning-example, so it uses
git describeto get the git tag, the current commit and if the commit tree is dirty.The Sunshine version has been prepended to the stdout for troubleshooting.
In the index.html file of the Web UI, communication with the GitHub API has been added, for fetching the latest version and letting the user know if a new version is available. release users only get notices of releases, while nightly users get both release and the last successful CI in the Ci.yaml
For making the tag sync with the current master (0.17), I've merged master into nightly (there are only some merge commits)
Screenshot
Issues Fixed or Closed
Type of Change
.github/...)Checklist
Branch Updates
LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.