Repository navigation
build: make Windows archive builds reproducible - #4642
Open
benma-agent wants to merge 7 commits into
Open
benma-agent wants to merge 7 commits into
benma-agent wants to merge 7 commits into
Conversation
Prepare the manifest and discovery helpers for the pinned Windows build. Match installed compilers, SDKs, Qt and runtimes by their pinned files and report installation instructions for missing or mismatched dependencies. Follow-up commits provision these versions in CI and enforce the checks in the Windows archive build.
Install the manifest versions, including Chocolatey MinGW and Visual Studio Build Tools, and keep installation logs out of Go source metadata. Prepare CI for the archive build toolchain checks. Keep the Visual Studio edition alias until the build selects its compiler from the verified roots.
benma-agent
force-pushed
the
benma-agent/reproducible-windows-archive-2
branch
from
November 26, 2026 12:50
2eb9594 to
fba2c83
Compare
windeployqt includes Qt Positioning's NMEA plug-in through Qt WebEngine. That plug-in imports Qt6SerialPort.dll, which is also in the Windows v4.53.1 release. Require the serialport module in BitBox.pro so a missing module fails at configuration time even though the app does not use its API. Install Qt Serial Port in CI and list it in the local setup instructions. Pin its DLL and include it in the expected runtime files. This prepares the archive pipeline to use normal NMEA deployment without excluding the plug-in from dependency discovery and manually copying it afterward.
benma-agent
force-pushed
the
benma-agent/reproducible-windows-archive-2
branch
2 times, most recently
from
November 26, 2026 14:02
3ac16cf to
f8c7b4e
Compare
benma
marked this pull request as ready for review
November 26, 2026 14:03
Build a physical checkout at C:\bitbox-wallet-app with pinned tools. Use the verified installations directly and keep temporary files, caches and native outputs under frontends/qt/build. Clear previous outputs without following linked directories. Require the physical checkout path before tool discovery or cleanup. It stabilizes gnark-crypto's shared assembly include paths that Go's -trimpath does not cover. Control the compiler environment, Qt deployment and archive metadata so host configuration does not change the payload. Use the same checked entry point locally and in CI. Copy the complete CI checkout with robocopy to preserve the dangling Linux packaging symlink. Include .git and initialized submodules, leaving the original workspace intact for actions/checkout cleanup. Handle robocopy's nonzero success codes explicitly. Quote Make's path for recursive recipes and select Bash through the verified PATH so installation paths containing spaces remain usable. Use the checked Qt installation configuration directly. Package the optional installer from the same app files. Start PowerShell through Bash so a 32-bit bootstrap Make does not select 32-bit PowerShell through Windows filesystem redirection.
Use the checked CRT file list to copy the runtime DLLs after the native build. This keeps deployment and verification in sync when the pins change. Remove the duplicated list from compile_windows.bat and its CRT path variable so the batch script only compiles the Qt application.
Compare every extracted file with GNU diff, ignoring archive metadata but preserving binary and line-ending differences. Accept local Windows paths and remove temporary files after success or failure.
benma-agent
force-pushed
the
benma-agent/reproducible-windows-archive-2
branch
from
November 26, 2026 14:17
f8c7b4e to
c4a918d
Compare
Export shared Go configuration, locale, timezone, and Qt hash seed from env.mk.inc on all platforms. Preserve these settings through the Windows environment reset, and include them in direct Android and iOS builds. Scope npm user/global configuration isolation to buildweb on every platform. Use absent configuration paths under the freshly cleared web output directory; keep Windows cache placement in the Windows wrapper. Remove the unused CXX setting, global npm prefix, and duplicate LANG.
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.
Use one pinned build pipeline for local and CI Windows archives on Windows 10/11,
including Home.
make windows-check-toolchain: verify dependencies and show installation guidance.CI provisions pinned tools, including through Chocolatey.
make qt-windows: build from the physical checkout atC:\bitbox-wallet-app, withcontrolled runtime deployment and normalized archive metadata. CI keeps building the unsigned installer so build artifacts can be used for testing.
env.mk.incand isolate npm configurationacross platforms.
./scripts/compare-builds.sh <tar1> <tar2>: extract and compare directories withdiff -qr.Document setup, building, and same-commit comparisons in
docs/BUILD.md.