Skip to content

fix(build): on Windows the build tries once more when it stops (0.39.1) - #21

Merged
nodemode-ai merged 2 commits into
mainfrom
fix/windows-nsis-retry-0.39.1
Dec 1, 2026
Merged

nodemode-ai merged 2 commits into
mainfrom
fix/windows-nsis-retry-0.39.1

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

fix(build): on Windows the build tries once more when it stops (0.39.1)

Summary

  • The 0.39.0 Windows release run froze the engine, built and signed the MSI, then stopped at Verifying NSIS package with failed to bundle project: hash mismatch of downloaded file. formMCP's Windows run stopped the same way the same day.
  • Cause: a damaged download. The nsis-3.11.zip on GitHub has SHA-1 EF7FF767E5CBD9EDD22ADD3A32C9B8F4500BB10D, exactly what the pinned Tauri CLI 2.12.1 expects, so the file itself is fine and the run received a bad copy.
  • Fix: setup/desktop_build.bat runs tauri build once more, after a 15 second pause, when the first run stops. Tauri checks the download in memory and writes nothing, so the second run downloads it again; the engine is already frozen and the Rust side built, so the retry costs about a minute. A second stop fails the build as before.
  • If the build machine gets a damaged file every time, the retry will not help; NSIS would then have to be provided ahead of time in Tauri's tools folder, best done once in formcompiler for every app.
  • Release 0.39.1. 0.39.0 was never published, so this release carries it too.

Commits

  • fix(build): on Windows the desktop build tries the Tauri build once more when it stops
  • chore(release): 0.39.1, the Windows build tries the Tauri build once more

Version

v0.39.1 (release commit is last). Bumped the same sites as 0.39.0: the README badge and version line, backend/app/init.py, frontend/package.json, both project fields of frontend/package-lock.json, frontend/src/version.ts, src-tauri/Cargo.toml, formtxt's entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the build version lines in backend/HASHOUT_LOG.md and frontend/HASHOUT_LOG.md, and a CHANGELOG section. The three browser demos were rebuilt with npm run demo; only the version string in each demo.js changed.

Checks

  • setup/desktop_build.bat keeps CRLF line endings throughout.
  • npm ci, npm run typecheck, npm run build, npm run demo: passed.
  • pytest tests/test_f4_versions.py (every version site agrees): 3 passed.
  • cargo metadata --locked --no-deps in src-tauri: passed.

Not run: a Windows build or the retry path itself, the full test suite, setup/notices.py --check, the window smoke test, CI.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

The short hashes change when the commits are signed.

…ore when it stops

The Windows release run built and signed the MSI, then stopped at
"Verifying NSIS package" with "hash mismatch of downloaded file", as
formMCP's did the same day. The nsis-3.11.zip on GitHub has exactly the
SHA-1 that the pinned Tauri CLI 2.12.1 expects, so the run received a
damaged download. Tauri checks it in memory and writes nothing, so a second
tauri build downloads it again; the engine is already frozen and the Rust
side built, so the retry costs about a minute. A second stop fails the build
as before.
…more

Version sites, as 0.39.0 did them: README.md (badge and line),
backend/app/__init__.py, frontend/package.json, frontend/package-lock.json
(the project's two fields), frontend/src/version.ts, src-tauri/Cargo.toml,
src-tauri/Cargo.lock (formtxt's own version), src-tauri/tauri.conf.json,
the current build version in backend/HASHOUT_LOG.md and
frontend/HASHOUT_LOG.md, and the CHANGELOG entry, which says that 0.39.0
was never published and that this release carries it, plus the second
tauri build in setup/desktop_build.bat. The three browser demos (demo,
demos/paper, demos/newsletter) are rebuilt by npm run demo and carry 0.39.1.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner December 1, 2026 03:29
@nodemode-ai
nodemode-ai merged commit c503af4 into main Dec 1, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the fix/windows-nsis-retry-0.39.1 branch December 1, 2026 03:33
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