feat: add CLI install script for /install.sh - #674
Merged
Conversation
One-liner `curl -fsSL https://api-platform.com/install.sh | sh` installs the API Platform CLI static binary (linux/macos, x86_64/aarch64) and verifies the published sha256 before exec.
~/.local/bin is on PATH by default on most systems (XDG/systemd convention), so the binary is runnable immediately without a manual PATH export.
2 tasks
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.
What
Adds
pwa/public/install.sh, served athttps://api-platform.com/install.sh.One-liner to install the API Platform CLI static binary:
curl -fsSL https://api-platform.com/install.sh | shBehaviour
uname→api-platform-{linux,macos}-{x86_64,aarch64}(matches the CLI release artifacts).github.com/api-platform/api-platform/releases/latest— version-independent, always installs the newest release. No per-tag sync needed.<binary>.sha256) beforechmod +x; aborts + deletes on mismatch or missing checksum.$HOME/.api-platform(overrideBIN_DIR), no sudo. PATH hint printed.Notes
public/— middleware only rewrites/docs*and/con*, so/install.shpasses through untouched.api-platform/api-platformpublishes the.sha256per binary in the release workflow.