Repository navigation
One-line install for Linux and Apple Silicon Macs - #339
Closed
powerofsoul wants to merge 1 commit into
Closed
powerofsoul wants to merge 1 commit into
powerofsoul wants to merge 1 commit into
Conversation
A release now builds devcapsule-linux-arm64 and devcapsule-macos-arm64 on native runners beside devcapsule.pex, records them in the release manifest, and publishes SHA256SUMS and an install.sh with the release's own URL written in. The script picks the executable for the computer, checks every file against SHA256SUMS before installing anything, and on a Mac puts both Linux runtimes in ~/.local/lib/devcapsule. A packaged launcher now looks there when DEVCAPSULE_RUNTIME_PEX is unset, so a Mac needs no profile edit. The install page leads with the one command and keeps the manual Linux x86-64 steps; the macOS page installs from the release and keeps the source build for unreleased commits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the nine-line download-and-verify block on the install page with one command that also works on Apple Silicon Macs:
curl -fsSL {{download_url}}/install.sh | shWhat changes
release-pex.yml): a newbuild-other-platformsmatrix buildsdevcapsule-linux-arm64(ubuntu-24.04-arm) anddevcapsule-macos-arm64(macos-15) from the tag, each run on its own platform and checked against the tag (--help,version --json). The publishing job adds them to the release with aSHA256SUMScovering all three executables and aninstall.shwith the release's URL written in. Recovery and post-publish verification cover the new assets.devcapsule.pexanddevcapsule.pex.sha256are unchanged, so the promotion gate and the manual steps still work.scripts/install.sh(POSIXsh, so it runs under macOS/bin/shanddash): picks the executable fromuname(Linux x86-64, Linux aarch64, Apple Silicon, including a shell under Rosetta). It checks every file againstSHA256SUMSwithsha256sumorshasumbefore installing anything, then installs~/.local/bin/devcapsule. On a Mac it also installs both Linux runtimes as~/.local/lib/devcapsule/devcapsule-linux-{amd64,arm64}. Everything runs insidemain, so a download that cuts off runs nothing.runtime_artifact.py): a packaged launcher withDEVCAPSULE_RUNTIME_PEXunset now delivers~/.local/lib/devcapsule/devcapsule-<platform>when it exists, so a Mac needs no profile edit. The variable still takes precedence. A source-form launcher still needs the variable.release-manifest.py:--artifactrecords each other platform's executable after checking that it is the tag's build.export. The Linux page notes the experimental aarch64 executable.Verified
shinstalled this Mac's local builds from afile://release. The launcher and both runtimes landed where expected, anddevcapsule versionanswered.tests/integration/test_install_script.py(7 tests) runs the script as each platform behind a stubbedunameandsysctl. It covers a tampered download (nothing installed), unsupported platforms, and the unfilled template.tests/unit/devcapsule/test_runtime_artifact.py(4 tests) covers the default directory: it is used, the variable wins over it, the error message names it, and a source launcher ignores it.mypyon the changed files passes. The legacytest_runtime_artifact.pyandtest_release_manifest.pystill pass.tests/unit/tests/test_conftest.py::test_every_registered_marker_is_a_docker_marker_unless_it_is_a_known_non_docker_one, which fails onmaintoo: linux arm64/capsules #338 registeredown_host_patches, and the test's list of non-Docker markers doesn't name it.Not verified
ubuntu-24.04-armandmacos-15builds.Known red CI, not from this change
mainfails Check test conventions since #338.tests/test_linux_arm64_matrix.pyandtests/test_project_platform_selection.pysit outside the unit mirror without a heavier suite's marker, and 18 of their tests have no docstring (20 breaches). This PR inherits that failure. The release workflow'snox -s testsstep will fail the same way until it is fixed. It's the linux-arm64 workstream's to fix, in a separate PR.🤖 Generated with Claude Code