Repository navigation
fix(installer): preserve setup.iss in locale generator - #107
Merged
mlopezsegura merged 1 commit intoNov 30, 2026
Merged
mlopezsegura merged 1 commit into
mlopezsegura merged 1 commit into
Conversation
Remove the destructive setup.iss rewrite, add regression coverage for preservation and idempotency, and validate generated installer catalogs in CI.
This was referenced Nov 30, 2026
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.
What changed
The installer locale generator no longer rewrites
Core/Installer/setup.iss. The previous broad regex replaced everything from[Languages]through the[Setup]overrides up to[Tasks], which removed the Inno Setup 6.7 theme include and setup settings.setup.issis now treated as the source of truth. It already includeslanguages.generated.issandmessages.generated.iss, so the generator only writes those generated fragments and the English region metadata.Why
Running the generator after editing installer messages silently deleted the conditional theme block and
[Setup]overrides fromsetup.iss. This made generated catalog updates unsafe and caused avoidable churn in a file that should be maintained deliberately.Changes
tools/generate-installer-locales.py: remove the destructivesetup.issread/regex/write block; document thatsetup.issis intentionally not rewritten.tests/installer-generator.test.cjs: add a temporary-fixture regression suite covering byte-preservation ofsetup.iss, theme/[Setup]markers, generated-file identity, the 22-language/308-message catalog shape, and second-run idempotency..github/workflows/build-release.yml: install Python 3.12, run the regression test, regenerate installer catalogs, and fail if tracked generated files are stale or unexpected files appear underCore/Installer.Testing
node tests/installer-generator.test.cjs: 3 tests passed, 0 failed.setup.issrewrite and the resulting non-idempotency.git diff --check: clean.Limitations
tests/i18n.test.cjssuite could not complete under the local sandbox becausespawnSync gitfails withEPERM; the targeted installer-catalog test passes.