Skip to content

feat(install): one-line installer + correct README URLs#18

Closed
hmk wants to merge 3 commits into
mainfrom
fix/install-urls
Closed

feat(install): one-line installer + correct README URLs#18
hmk wants to merge 3 commits into
mainfrom
fix/install-urls

Conversation

@hmk
Copy link
Copy Markdown
Owner

@hmk hmk commented May 11, 2026

Summary

The README install path is broken AND fragile. Two coordinated fixes:

Fix the broken URLs

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 the manual-install instructions to match.

Add a one-line install script

Even after fixing URLs, the previous README had install + shell-setup as separate sections, which is the #1 way users end up with a broken install ("I installed it but `try` does nothing"). 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.
  • 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 is signed and notarized.

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 2 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>
@hmk hmk changed the title fix(install): correct README curl URLs and drop version from archive names feat(install): one-line installer + correct README URLs May 11, 2026
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 closed this May 11, 2026
@hmk hmk deleted the fix/install-urls branch May 11, 2026 21:26
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