Clean and generate wtoffline-launcher-<version>-win-x64-portable.zip from win-unpacked directly inside scripts/build-windows-installer.ts so local package:win builds produce both the NSIS installer and the portable archive.
Checked: root and launcher typechecks pass.
Generate manifest.json for bundled patches during installer builds and ignore previously downloaded adaptation packs that are older than or equal to the bundled patch set.
Compile the DLL from source for each installer and clear stale output artifacts for the current release.
Verified by building the x64 installer and checking the generated output and bundled DLL.
Check the versioned release channel, verify the signed manifest and installer digest, and open the installer only after confirmation.
Verified type checks, the Windows package, and an upgrade handoff from a local release fixture, including tampering and interrupted downloads.
Ship the Electron workers, local server sources, native library, and bundled patch set in the Windows installer.
Verified type checks, build, and the extracted installer payload with a temporary copy, local save, and server health check.