Skip to content

feat(install): add checksum-verified Unix binary installer - #31

Merged
scbrown merged 2 commits into
mainfrom
ellie/tnr-public-installer-20261106
Nov 15, 2026
Merged

scbrown merged 2 commits into
mainfrom
ellie/tnr-public-installer-20261106

Conversation

@scbrown

@scbrown scbrown commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Adds a one-line Linux/macOS installer for published pxl releases. It selects a stable release, verifies its SHA256SUMS.txt archive checksum, bounds extraction to one regular pxl binary, checks the binary version, and refuses existing command links or installation directories. A custom prefix creates no command link. Downloads trust the GitHub publisher and HTTPS; this is not an independent signature.

Adds 19 local fixture controls and a four-platform hosted installation matrix against the existing v0.3.1 release. Local validation passed: all 2,655 Rust tests (37 ignored), installer 19/19, formatting, Clippy across all targets with lsp,wasm and warnings denied. Tests used a copied, hash/version-verified build artifact to satisfy the existing CLI test path contract. No release, published-asset or four-platform acceptance is inferred from local tests.

Demo — readable transcript, synthetic release fixture. Base e8c36fb has no install.sh; candidate 759c72a installs the fixture command and refuses a second install without changing its bytes. The actual installer runs with mocked release metadata/archive; it does not download a production binary. Reproduce the core behavior with python3 scripts/test-public-installer.py InstallerTests.test_default_real_command_and_nonoverwrite; exact fixture source. A terminal recording is retained privately; no publicly accessible playback link is available. The readable output below is the fallback.

Target: local synthetic release fixture; network metadata/payload mocked; actual installer executed
BASE e8c36fbd0fb8c8a3840d5612362b513b9181cc55 : install.sh absent
CANDIDATE install.sh SHA256 326cebe5731e4fc7988907d9dc73e48ca357a65ef39b830a4ba4214d4a39e75f
Installed pxl 0.3.1: /tmp/tmpwky8wegl/.local/share/pixelsrc/v0.3.1/pxl
Command: /tmp/tmpwky8wegl/.local/bin/pxl; add /tmp/tmpwky8wegl/.local/bin to PATH if needed
Command discovery: pxl 0.3.1
Repeat install: REFUSED: prefix already exists; choose a new --prefix
Existing command bytes unchanged: PASS
LIMIT: synthetic payload; four-platform published-binary acceptance awaits hosted CI

Bead: aegis-tnr

Overlap preflight: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945

@scbrown
scbrown merged commit ea14786 into main Nov 15, 2026
33 of 38 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant