Skip to content

feat(release): add curl install and standalone tarball#162

Merged
ymkiux merged 5 commits into
mainfrom
feat/curl-install
May 15, 2026
Merged

feat(release): add curl install and standalone tarball#162
ymkiux merged 5 commits into
mainfrom
feat/curl-install

Conversation

@ymkiux
Copy link
Copy Markdown
Collaborator

@ymkiux ymkiux commented May 15, 2026

Summary

  • Add scripts/install.sh — curl one-liner installer that downloads standalone tarball from GitHub Release, extracts to ~/.codexmate, symlinks to ~/.local/bin/codexmate, auto-adds PATH. Fallback to source archive + npm install --prod when no standalone tarball available.
  • Modify release.yml to pack a self-contained tarball (codexmate-{version}-standalone.tar.gz) including node_modules/ alongside the npm tgz, and upload both to the GitHub Release.

Tests

  • scripts/install.sh passes shellcheck (bash syntax, set -euo pipefail)
  • release.yml diff reviewed: standalone step runs after npm pack, before gh-release, files list uses | for multiple artifacts
  • Workflow logic: npm install --omit=dev ensures only prod deps in tarball
  • Manual: trigger release workflow and verify standalone tarball appears in GitHub Release
  • Manual: run curl -fsSL .../install.sh | bash on fresh machine after next release

Pack a self-contained tarball (with node_modules) in the release
workflow so users can install with:
  curl -fsSL .../install.sh | bash
Fallback to source archive + npm install when no standalone tarball.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 15, 2026

Warning

Rate limit exceeded

@ymkiux has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 7 minutes and 23 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5fe2d3dd-4dfa-468e-97e9-786395fdebb1

📥 Commits

Reviewing files that changed from the base of the PR and between 58cff7c and e30d23f.

📒 Files selected for processing (4)
  • .github/workflows/release.yml
  • README.md
  • README.zh.md
  • scripts/install.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/curl-install

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

ymkiux added 4 commits May 15, 2026 13:01
- fetch GitHub API once, reuse body for both standalone URL and tag parsing
- make API URL overridable via CODEXMATE_API_URL for testing
- fix grep/sed patterns for compact JSON (no space after colon)
- add fetch() helper to deduplicate curl/wget logic
- Add "Install via curl" / "curl 一键安装" section to both READMEs
- Remove duplicated Web UI / MCP / Config / Env Vars sections from
  English README tail
Version badge first, add install method (curl|npm) and platform
(Termux|Linux|macOS) badges to both READMEs
@ymkiux ymkiux merged commit d3614cc into main May 15, 2026
7 checks passed
@ymkiux ymkiux deleted the feat/curl-install branch May 15, 2026 05:30
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