Skip to content

Add curl-based install script for one-liner installation#53

Merged
BRO3886 merged 4 commits into
masterfrom
feat/install-script
Mar 10, 2026
Merged

Add curl-based install script for one-liner installation#53
BRO3886 merged 4 commits into
masterfrom
feat/install-script

Conversation

@BRO3886
Copy link
Copy Markdown
Owner

@BRO3886 BRO3886 commented Mar 10, 2026

Summary

  • Adds install.sh — a bash install script for one-liner installation
  • Detects OS (macOS/Linux) and architecture (arm64/amd64), resolves latest GitHub release, downloads the correct archive, and installs to ~/.local/bin (uses sudo if needed, creates dir if missing)
  • Prompts to install the AI agent skill after binary install
  • Windows is not supported by the script — users are pointed to the releases page instead

Usage

curl -fsSL https://gtasks.sidv.dev/install | bash

Custom install dir:

INSTALL_DIR=/usr/local/bin curl -fsSL https://gtasks.sidv.dev/install | bash

Test plan

  • macOS arm64: detects correctly, downloads gtasks_mac_arm64_<version>.tar.gz, installs, binary runs
  • macOS amd64: asset URL resolves, HTTP 200
  • Linux amd64: asset URL resolves, HTTP 200
  • Linux arm64: asset URL resolves, HTTP 200
  • Unsupported OS: prints helpful error pointing to releases page
  • INSTALL_DIR override works — installs to custom path
  • Skill install prompt: non-interactive (curl | bash) runs cleanly with no /dev/tty noise; y installs, anything else skips

Note: gtasks --version reports DEV from the v0.12.0 release binary — pre-existing issue with missing version ldflags at release time, unrelated to this script.

Closes #44

🤖 Generated with Claude Code

BRO3886 and others added 2 commits March 10, 2026 20:40
Adds install.sh for one-liner installation:
  curl -fsSL https://gtasks.sidv.dev/install | bash

- Detects OS (macOS, Linux, Windows/MSYS) and arch (amd64, arm64)
- Resolves latest release from GitHub API
- Downloads correct archive, extracts, installs to /usr/local/bin (sudo if needed)
- Prompts to install AI agent skill after binary install
- Matches asset naming convention: gtasks_<os>_<arch>_<version>.tar.gz

Closes #44

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Windows users should download the binary directly from GitHub releases.
Updated error message points them there.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Mar 10, 2026

Deploying gtasks with  Cloudflare Pages  Cloudflare Pages

Latest commit: cb0103b
Status: ✅  Deploy successful!
Preview URL: https://359fedef.gtasks.pages.dev
Branch Preview URL: https://feat-install-script.gtasks.pages.dev

View logs

BRO3886 and others added 2 commits March 10, 2026 20:42
No sudo needed. XDG standard, on PATH by default on modern Linux.
Also creates the dir if it doesn't exist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add warn() helper; use it for skill install failure instead of swallowing silently
- Add semver format validation on resolved version tag
- Add chmod +x after install (don't assume tar preserves permissions)
- Fix /dev/tty noise when running non-interactively (curl | bash)
- Change skill prompt to [y/N] (default no) to match non-interactive fallback
- Make PATH warning actionable with exact export command

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@BRO3886 BRO3886 merged commit 7f06031 into master Mar 10, 2026
2 checks passed
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.

Add curl-based install script for one-liner installation

1 participant