Skip to content

Update logic - #40

Open
diego-ferrand wants to merge 3 commits into
developmentfrom
UPDATE_LOGIC
Open

Update logic#40
diego-ferrand wants to merge 3 commits into
developmentfrom
UPDATE_LOGIC

Conversation

@diego-ferrand

@diego-ferrand diego-ferrand commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

This pull request introduces a new shared platform normalization module and refactors the codebase to use it, enhances update handling and user guidance for binary builds, and adds new HTTP configuration utilities. It also improves test coverage for update scenarios and makes minor dependency and version adjustments.

Platform normalization and refactoring:

  • Introduced a new config/platform_names.py module with normalize_system and normalize_arch functions for consistent platform name normalization, and refactored all usages in build.py, tests, and related modules to use these shared helpers [1] [2] [3] [4] [5].
  • Updated tests to import and use the new normalization helpers and update asset matching logic accordingly [1] [2] [3].

Update handling and user experience:

  • Added a --update command-line option to main.py for running an interactive manual updater in frozen binary builds, with corresponding logic to display update instructions and invoke the updater flow [1] [2] [3].
  • Improved user prompts and update guidance for frozen builds, including an option to trigger the updater from the exit prompt.

Testing improvements:

  • Enhanced test coverage for update scenarios, including runtime-specific update guidance and asset matching, and added patches for platform detection in tests [1] [2].

New utilities and configuration:

  • Added config/http.py with shared HTTP client defaults and user-agent string for use across the project.

Dependency and packaging updates:

  • Included the new update package in the distribution and build process, and adjusted the project version in pyproject.toml [1] [2] [3].

@3dgiordano

Copy link
Copy Markdown
Collaborator

@copilot resolve the merge conflicts in this pull request

Co-authored-by: 3dgiordano <797057+3dgiordano@users.noreply.github.com>

Copilot AI commented Aug 12, 2026

Copy link
Copy Markdown

@copilot resolve the merge conflicts in this pull request

Merged origin/development into this branch. The only conflict was in pyproject.toml (version 1.1.0 vs 1.1.2); resolved by keeping 1.1.2 from development. Commit: a143e81.

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.

3 participants