Skip to content

feat(packaging): downloadable installer bundle and a release workflow - #35

Merged
I4cTime merged 2 commits into
mainfrom
feat/release-bundle
Nov 12, 2026
Merged

I4cTime merged 2 commits into
mainfrom
feat/release-bundle

Conversation

@I4cTime

@I4cTime I4cTime commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Summary

Cryo gets a downloadable installer, so the site can offer a download button the way MineUI's does.

  • tools/build_bundle.py builds cryo-<version>-linux-x86_64.tar.gz (18.7 MB) and SHA256SUMS. The build is reproducible: two runs are byte-identical.
  • Inside: install.sh, uninstall.sh, the Cryo wheel, a hash-pinned requirements.txt exported from the lock, a pinned and checksum-verified static uv, the unit templates and icons.
  • sudo ./install.sh installs into /opt/cryo with its own uv-managed Python 3.13 and environment, links cryoctl and cryo-gui into /usr/local/bin, installs the units, icons and menu entry system-wide, and starts cryod. It needs no git, no uv and no particular system Python; a distro Python upgrade cannot break it. At install time it downloads about 300 MB (Python about 35 MB, dependencies about 265 MB, mostly Qt), every file checked against the lock's hashes.
  • Rerunning from a newer bundle upgrades in place (new environment built beside the old one, swapped, rolled back on failure). It takes over a from-source install and removes that user's stale per-user links and menu entry.
  • sudo /opt/cryo/uninstall.sh removes everything it added and keeps /etc/cryo and /var/lib/cryo unless --purge.
  • release.yml: a version tag runs the tests, builds the bundle, attests its build provenance and attaches it to a draft release. A manual dry run keeps the bundle as a workflow artifact.
  • CI gains a bundle job: build, then a real install, upgrade, uninstall and purge on the runner. The existing check job is untouched.
  • Docs: docs/INSTALL.md, README install and uninstall sections, a paragraph in CONTRIBUTING.

Type

Feature (packaging and CI). No daemon, hw, cli or GUI code changes. The from-source packaging/install.sh is unchanged and remains the developer path.

Checklist

  • uv run pytest -q: 184 passed (47 new, offline, no root)
  • shellcheck, bash -n, actionlint clean
  • No em dashes added

Verification

Run in systemd containers (podman), never on a machine with a real install:

distro install daemon exits 78 upgrade takeover of a from-source install tampered hash refused uninstall purge
Arch pass pass pass pass - pass pass
Ubuntu 24.04 pass pass pass - pass pass pass
Fedora pass pass pass - - pass pass

Refusals were each observed: not root, root without sudo, no systemd, musl (Alpine).

Not covered: the bundle CI job and release.yml have not run on GitHub before this PR (the job below is their first run; the tag path runs first at the next release); SELinux enforcing on a real Fedora install; an install on real Alienware hardware (the maintainer's machine runs the from-source install); a real change of the pinned Python version.

Known interaction: without the system libusb-1.0 cryod currently crash-loops; #34 fixes that. The installer warns that lighting needs libusb and names the packages.

Breaking changes

None.

🤖 Generated with Claude Code

I4cTime and others added 2 commits November 12, 2026 09:07
Every release can now carry cryo-<version>-linux-x86_64.tar.gz: extract
it, run sudo ./install.sh. It installs Cryo into /opt/cryo with its own
uv-managed Python and a hash-checked environment, system-wide commands,
units, icons and menu entry, and an uninstaller. No git checkout and no
uv on the machine are needed, and nothing points at a source tree any
more, so moving a folder or a distro Python upgrade cannot break it.

tools/build_bundle.py builds the bundle reproducibly (pinned, checksum
verified static uv; requirements exported from the lock with hashes).
release.yml builds it on a version tag, attests its provenance and
attaches it to a draft release. CI builds it on every pull request and
runs a real install, upgrade, uninstall and purge on the runner.

The from-source packaging/install.sh stays as the developer path.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_0137cahar5LBoYMf2fiDkt4v
@I4cTime
I4cTime merged commit 1baee30 into main Nov 12, 2026
2 checks passed
@I4cTime
I4cTime deleted the feat/release-bundle branch November 12, 2026 18:47
I4cTime added a commit that referenced this pull request Nov 12, 2026
…36)

Version bump. The release gathers #32-#35: the desktop app split into
a Cryo QML module with a demo mode and a screenshot tour; the feel
pass (window frost and backdrop washes that follow the heat, the
Thermal Guard flash freeze, ice panels and vector icons, the living
mark, rolling digits, three synthesized sound sets, Frost's one-line
status, four styles with an accent override on a new Settings view);
a missing libusb-1.0 reading as "no lighting" instead of a crash
loop; and the downloadable installer bundle with the release workflow
that builds, attests and attaches it.


Claude-Session: https://claude.ai/code/session_0137cahar5LBoYMf2fiDkt4v

Co-authored-by: Claude Fable 5.2 <[email protected]>
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