mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
install.sh picks this host's archive (devvm-<version>-<os>-<arch>.tar.gz: darwin or linux, arm64 or amd64; Apple silicon's under Rosetta, from sysctl hw.optional.arm64), checks SHA256SUMS's minisign signature (an empty key still skips it, with a warning; no minisign prints the command to check by hand), then the archive's checksum, and installs the binary with its data files in <prefix>/lib/devvm/<version>, linked from <prefix>/bin/devvm. Older versions go, except one a running process names in its arguments (a VM's proxy, QEMU's guestfwd on Linux): it's kept until a later install. Then it offers devvm doctor --fixes' fixes, asking first (Homebrew's Lima or Lima's checked release tarball, QEMU, the kvm group), and runs devvm doctor. Downloads are HTTPS only. Its text isn't messages: it runs before devvm is there. release.sh --head now needs install.sh too. Tests: testdata/script/install.txtar sources install.sh (host and archive names, Rosetta, version choice and validation, HTTPS-only fetch, run_fix as words, install and links, reinstall, an older version in use kept (and the real ps), signature good, bad, missing, no minisign, a bad checksum, no archive for this host, Lima's tarball for the host and arch and a bad checksum, the PATH hint, the fixes with --yes, the kvm re-login, no yes, Lima's release once allowed, nothing missing, main's options, and the tests' devvm binary installed and finding its files); release_head.txtar: a HEAD without install.sh is refused. docs: install.md (Homebrew and the install script, upgrading, uninstalling), maintaining.md (trying install.sh on a --head build), README. Co-Authored-By: Claude Opus 5.5 <[email protected]>