Skip to content

feat: Add versioning support to packaged builds and update dialog manager to display version#37

Merged
duartebarbosadev merged 5 commits intomainfrom
feat-include-version-in-about-window
Sep 6, 2025
Merged

feat: Add versioning support to packaged builds and update dialog manager to display version#37
duartebarbosadev merged 5 commits intomainfrom
feat-include-version-in-about-window

Conversation

@duartebarbosadev
Copy link
Copy Markdown
Owner

@duartebarbosadev duartebarbosadev commented Sep 6, 2025

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.py file 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:

  • Added a CI step in .github/workflows/release-build.yml to generate src/core/build_info.py with the version string, derived from the git tag or commit SHA for ad-hoc builds.
  • Updated PyInstaller commands in .github/workflows/release-build.yml to include core.build_info as a hidden import, ensuring version info is bundled in the packaged app. [1] [2]

Source Code Changes:

  • Added src/core/build_info.py as a placeholder to be overwritten by CI with the version info during release builds.
  • Refactored the About dialog in src/ui/dialog_manager.py to dynamically display the version from core.build_info.VERSION in packaged builds, hiding it in local development runs.

Copilot AI review requested due to automatic review settings September 6, 2025 21:15

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

duartebarbosadev and others added 2 commits September 6, 2025 23:06
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@duartebarbosadev duartebarbosadev merged commit b72050b into main Sep 6, 2025
3 checks passed
@duartebarbosadev duartebarbosadev deleted the feat-include-version-in-about-window branch September 6, 2025 22:54
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.

2 participants