feat: Add versioning support to packaged builds and update dialog manager to display version#37
Merged
duartebarbosadev merged 5 commits intomainfrom Sep 6, 2025
Conversation
…o display version
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds automatic version injection to packaged builds and updates the About dialog to display the version when available. The implementation ensures that release builds show the correct version while hiding version information during local development.
- Adds CI build step to generate version information from git tags or commit SHA
- Updates PyInstaller configuration to include the version module in packaged builds
- Modifies About dialog to conditionally display version based on availability
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/release-build.yml |
Adds version generation step and PyInstaller configuration updates |
src/core/build_info.py |
Creates placeholder version module for CI to populate |
src/ui/dialog_manager.py |
Updates About dialog to conditionally display version from build info |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a mechanism to automatically inject the application version into the packaged binary during CI builds, ensuring that the correct version is displayed in the app's About dialog for release builds. The changes add a CI step to generate a
build_info.pyfile containing the version, update the build process to include this file, and modify the About dialog to display the version only when available.CI/CD and Build Process Improvements:
.github/workflows/release-build.ymlto generatesrc/core/build_info.pywith the version string, derived from the git tag or commit SHA for ad-hoc builds..github/workflows/release-build.ymlto includecore.build_infoas a hidden import, ensuring version info is bundled in the packaged app. [1] [2]Source Code Changes:
src/core/build_info.pyas a placeholder to be overwritten by CI with the version info during release builds.src/ui/dialog_manager.pyto dynamically display the version fromcore.build_info.VERSIONin packaged builds, hiding it in local development runs.