Skip to content

Verification and Reproducibility

Carlos Hernandez edited this page Oct 15, 2026 · 2 revisions

Verification and Reproducibility

embala writes every installer format directly — no WiX under the .msi, no pkgbuild under the .pkg, no choco.exe under the .nupkg. That raises one fair question: does the output actually install? embala answers it two ways. Every format is compared table-by-table against the platform's own tooling (where such an oracle exists), and — the gate that actually decides — every format is installed, upgraded, and uninstalled on a real machine. The rest of this page says exactly what ran, on what, and what did not.

What was verified, per format

For each format, the real-target column is what actually passed on real hardware. The oracle column is the differential cross-check that backs the writer — for two formats there is no such oracle, and that is stated plainly.

Format Real-target verification (passed) Differential oracle
MSI msiexec /i install, major-upgrade (0.1.0 → 0.2.0), and silent uninstall on Windows 11; downgrade blocked (exit 1603 + launch-condition message) msitools — wixl reference MSI, table-by-table msiinfo diff
Setup-Exe Full wizard (welcome → license → components → directory → progress → finish), /S silent parity, per-user and per-machine (UAC) installs, cancel-mid-install rollback, and uninstall.exe reversal on Windows 11 None — no oracle exists for this format; real-target only
App-Bundle plutil -lint of Info.plist and launch via open on macOS 26 None — real-target only
Pkg pkgutil --expand-full and installer -pkg … -target CurrentUserHomeDirectory (user-home domain) on macOS 26 pkgbuild / mkbom — payload, PackageInfo, and BOM compared via lsbom; the Scripts archive against pkgbuild --scripts; file and directory modes against pkgbuild --root
Nupkg choco install / choco uninstall, both the embedded and download-on-install styles, on Windows 11 None — real-target (choco) plus structural zip checks

Two honest caveats on the above:

  • .pkg system-domain install (sudo installer -target /) was not run — v1 rests on the user-home-domain lifecycle (install, receipt, forget), verified end to end. The system-domain path is expected to work but is unproven.
  • .nupkg NuGet V3 feed acceptance (icon re-hosting, license expression) is a still-open spot-check. Chocolatey install/uninstall is fully verified; compatibility with a NuGet V3 gallery is not yet confirmed.

Byte-reproducibility

With no [sign] section (see Code-Signing), identical inputs produce byte-for-byte identical output — building the same config twice yields two files that cmp clean. embala earns this by removing every source of nondeterminism from its writers:

Source of drift How embala pins it
File timestamps Archive mtimes fixed to a constant (zip/gzip/cpio entries), never the wall clock
Entry ordering Payload and metadata entries emitted in a sorted, stable order
Identifiers MSI GUIDs (Product/Package/Upgrade/component codes) and the nupkg core-properties id are derived deterministically from your identifier and version, not randomly generated
Creation times MSI summary-info creation time is a fixed constant

Why it matters to you:

  • Caching and CI — a rebuild that changed nothing produces the same bytes, so content-addressed caches and reproducible pipelines stay valid.
  • Out-of-band signing — hand the same artifact to a signing service twice and you know you signed the same thing both times; there is no hidden per-build drift to reconcile.
  • Supply-chain auditability — anyone can rebuild from the same inputs and diff the result against what you shipped. A byte-identical rebuild is evidence the published artifact came from the published source.

Adding a [sign] section runs your external signing tool, which writes its own signature bytes — reproducibility then depends on that tool, not on embala.

A note on ARM64 (aarch64)

arm64 Windows artifacts — both .msi and setup.exe — are supported and shipped. The x86_64 artifacts are verified end-to-end on real Windows, as the table above describes. The aarch64 artifacts are cross-compile-tested but not yet verified on ARM64 hardware: they build, but no install/upgrade/ uninstall cycle has been run on a real ARM64 Windows machine. Treat them as functional-by-construction, not proven.

See Getting-Started to build your first installer and Configuration-Reference for the full embala.toml schema.

Clone this wiki locally