Skip to content

ci(nix): validate the prebuilt desktop package (ldd, interpreter, smoke launch)#212

Merged
adibhanna merged 1 commit into
mainfrom
nix/build-validation
Jun 19, 2026
Merged

ci(nix): validate the prebuilt desktop package (ldd, interpreter, smoke launch)#212
adibhanna merged 1 commit into
mainfrom
nix/build-validation

Conversation

@adibhanna

Copy link
Copy Markdown
Contributor

Follow-up to #211. Proves the prebuilt zennotes-desktop is runnable, not just buildable:

  • ELF interpreter of the ZenNotes binary is patched into the Nix store
  • ldd resolves every shared library (no => not found)
  • wrapper, desktop entry, and hicolor icons are installed; SUID chrome-sandbox removed
  • best-effort headless xvfb smoke-launch (non-blocking) to confirm Electron starts without a loader crash

This is the closest we can get to runtime validation without a NixOS box — the Nix build check on this PR runs all of it.

Splits the build into per-package out-links and adds a validation step that
proves the wrapped binary is actually runnable: ELF interpreter patched into
the Nix store, ldd resolves every shared library, wrapper/desktop-entry/icons
installed, and the SUID chrome-sandbox removed. Plus a best-effort headless
xvfb smoke-launch (non-blocking) to confirm Electron starts without a loader
crash. Also adds this workflow's own path to the triggers so workflow edits
are exercised.
@adibhanna
adibhanna merged commit 09981bc into main Jun 19, 2026
5 checks passed
@adibhanna
adibhanna deleted the nix/build-validation branch June 19, 2026 23:57
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