Skip to content

fix(build): preserve the existing installer icon - #381

Open
Lng999 wants to merge 1 commit into
Alban1911:mainfrom
Lng999:fix/preserve-installer-icon-20261020
Open

Lng999 wants to merge 1 commit into
Alban1911:mainfrom
Lng999:fix/preserve-installer-icon-20261020

Conversation

@Lng999

@Lng999 Lng999 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Creating an installer previously regenerated the tracked assets/icon.ico from the PNG on every run, modifying the checkout and potentially replacing the intended icon. Preserve an existing ICO; generate from the PNG only when the ICO is missing. Keep the existing conversion-error handling and copy-to-dist behavior.

Validation: four temporary-root tests cover preserving existing bytes, generating a missing ICO, conversion failure without an ICO, and using an existing ICO without Pillow. The preservation regression fails against the pre-change implementation; all four pass with this change. Compiler invocation is mocked in these tests. All 330 Python tests passed in the current combined worktree; Ruff 0.16.8 error-only checks and git diff --check passed.

Source overlap: #365 also changes scripts/create_installer.py for compiler discovery; its diff does not address ICO regeneration. This narrow change remains based on main. #366 changes the Inno script and does not touch this builder.

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.

1 participant