Skip to content

feat: add install script and improve readme#20

Merged
hmk merged 3 commits into
mainfrom
feat/install-script-and-friendlier-readme
May 11, 2026
Merged

feat: add install script and improve readme#20
hmk merged 3 commits into
mainfrom
feat/install-script-and-friendlier-readme

Conversation

@hmk
Copy link
Copy Markdown
Owner

@hmk hmk commented May 11, 2026

Summary

Bundles three coordinated fixes that all touch the install/onboarding story:

1. One-line install script

The README's biggest sharp edge: install + shell-setup were two separate sections, so users frequently ended up with a binary on PATH but no working `try` command (the `eval "$(try init)"` wrapper isn't optional — it's how `try` actually `cd`s into the selected directory).

  • New `install.sh` does both: downloads the right tarball, installs the binary, detects the user's shell, and appends the eval line idempotently. Tested in a sandbox HOME end-to-end.
  • README boils down to one curl command. Manual install paths (Go, raw download, deb/rpm) move to `INSTALL.md`.
  • Removed the stale "not notarized yet" Gatekeeper warning — v0.1.3 ships signed and notarized.

2. Correct the release URLs

The previous README pointed at `try-bedazzled_Darwin_arm64.tar.gz` but goreleaser produces lowercase `darwin` AND prefixes with version (`try-bedazzled_0.1.3_darwin_arm64.tar.gz`), so neither URL resolved under `releases/latest/download/`.

  • Drop `{{ .Version }}` from `archives.name_template` so files become `try-bedazzled__.tar.gz` — standard Go-CLI convention; makes `releases/latest/download/` URLs evergreen.
  • Lowercase the URLs in `INSTALL.md` and `install.sh` to match.

3. Friendlier README tone

Removed three lines that ribbed users for picking calmer themes:

Before After
"or off, if you're a coward" "every preference welcome" 🦄
"no rainbow (for grown-ups)" "sparkle dialed back"
"people who hate joy" "perfect for CI logs and quiet terminals"

Test plan

  • After merge, cut a release (next `fix:` or `feat:` commit) so unversioned filenames exist
  • In a sandbox HOME: `curl -fsSL .../install.sh | sh` → confirms binary + rc edit
  • Run again → confirms idempotent ("already configured")
  • Open a fresh shell → `try` opens the selector and `Enter` actually `cd`s

🤖 Generated with Claude Code

hmk and others added 3 commits May 11, 2026 14:10
…names

The README pointed at try-bedazzled_Darwin_arm64.tar.gz but goreleaser
produces lowercase os strings AND embeds the version, so the actual file
was try-bedazzled_0.1.3_darwin_arm64.tar.gz — neither URL worked from
releases/latest/download/.

Drop {{ .Version }} from the archive name_template so files become
try-bedazzled_darwin_arm64.tar.gz, matching the version-less pattern
that releases/latest/download/ requires. Update README URLs to lowercase.

Also remove the "not notarized yet" Gatekeeper warning — releases since
v0.1.3 are signed and notarized.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…nction

The previous README put the binary install and the shell-rc edit in
separate sections, which is the #1 way users end up with a broken setup
("I installed it but `try` does nothing"). The shell function wrapper
isn't optional — it's how `try` actually `cd`s into the selected
directory.

install.sh handles both in one command:
- Detects darwin/linux × amd64/arm64
- Downloads the matching tarball from the latest release
- Drops the binary in /usr/local/bin (or $TRY_INSTALL_DIR)
- Detects the user's shell and appends `eval "$(try init)"` to the
  appropriate rc file
- Idempotent: a second run sees the marker and skips the rc edit

README now points at:
  curl -fsSL https://raw.githubusercontent.com/hmk/try-bedazzled/main/install.sh | sh

Manual install paths (Go, raw download, deb/rpm) move to INSTALL.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replace three lines that ribbed users for picking the calmer themes:
- "or off, if you're a coward" → "every preference welcome"
- "no rainbow (for grown-ups)" → "sparkle dialed back"
- "people who hate joy" → "perfect for CI logs and quiet terminals"

Unicorns and rainbow fuzzies the whole way through. 🦄

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hmk hmk changed the title feat: install script + friendlier README + correct release URLs feat: add install script and improve readme May 11, 2026
@hmk hmk merged commit ee3af3e into main May 11, 2026
8 of 10 checks passed
@hmk hmk deleted the feat/install-script-and-friendlier-readme branch May 11, 2026 21:35
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