Skip to content

feat: optimize quick install scripts#211

Merged
Sunrisepeak merged 1 commit intomainfrom
feat/quick-install-optimize
Mar 16, 2026
Merged

feat: optimize quick install scripts#211
Sunrisepeak merged 1 commit intomainfrom
feat/quick-install-optimize

Conversation

@Sunrisepeak
Copy link
Copy Markdown
Member

Summary

  • Replace GitHub API (api.github.com) version query with /releases/latest HTTP redirect — avoids 60 req/hr rate limit
  • Add version pinning: XLINGS_VERSION=v0.5.0 env var or bash -s -- v0.5.0 positional arg (sh) / -Version param (ps1)
  • Simplify TTY detection in sh: single exec < /dev/tty guard replaces redundant 3-branch if/elif/else
  • PowerShell Resolve-LatestVersion compatible with both PS 5.1 (ResponseUri) and PS 7+ (RequestMessage.RequestUri)
  • Add docs/quick-install.md usage documentation

Test plan

  • bash tools/other/quick_install.sh — auto-resolve latest via redirect
  • cat tools/other/quick_install.sh | bash — TTY auto-detection
  • XLINGS_VERSION=v0.5.0 bash tools/other/quick_install.sh — skip network query
  • bash tools/other/quick_install.sh v0.5.0 — positional arg
  • .\quick_install.ps1 -Version v0.5.0 — PowerShell version param

🤖 Generated with Claude Code

…d resolution, TTY fix

- Replace GitHub API version query with /releases/latest redirect (no rate limit)
- Add version pinning via XLINGS_VERSION env var or positional arg (bash -s -- v0.5.0)
- Simplify TTY detection: single exec < /dev/tty guard replaces 3-branch if/elif/else
- Add PowerShell -Version parameter, compatible with PS 5.1 and 7+
- Add docs/quick-install.md usage documentation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Sunrisepeak Sunrisepeak merged commit 267badc into main Mar 16, 2026
3 checks passed
@Sunrisepeak Sunrisepeak deleted the feat/quick-install-optimize branch March 16, 2026 16:29
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