From e92fec5e0879e1f257dd28238c5925fc242cafca Mon Sep 17 00:00:00 2001 From: "Youri T. K. K. Mattar" Date: Thu, 1 Oct 2026 18:55:14 -0300 Subject: [PATCH] Let the Homebrew tap pick up releases on its own youhide/homebrew-youhide is now youhide/homebrew-tap, and it regenerates its formulas from each project's latest release instead of waiting for a push. The release no longer needs update-tap-formula.sh or the HOMEBREW_TAP_GITHUB_TOKEN secret, so both go. Install instructions move to the new name: brew install youhide/tap/. --- .github/pages/index.html | 8 +- .github/scripts/update-tap-formula.sh | 101 -------------------------- .github/workflows/release.yml | 14 ---- .goreleaser.yaml | 6 +- README.md | 5 +- 5 files changed, 8 insertions(+), 126 deletions(-) delete mode 100644 .github/scripts/update-tap-formula.sh diff --git a/.github/pages/index.html b/.github/pages/index.html index 55ce567..4573d48 100644 --- a/.github/pages/index.html +++ b/.github/pages/index.html @@ -77,7 +77,7 @@ "name": "How do I install hideDot?", "acceptedAnswer": { "@type": "Answer", - "text": "Install hideDot with Homebrew: run 'brew tap youhide/homebrew-youhide' followed by 'brew install hidedot'." + "text": "Install hideDot with Homebrew: run 'brew install youhide/tap/hidedot'." } }, { @@ -522,8 +522,7 @@

Getting Started

1Installation

Install hideDot using Homebrew:

-
brew tap youhide/homebrew-youhide
-brew install hidedot
+
brew install youhide/tap/hidedot
@@ -626,8 +625,7 @@

What is hideDot?

How do I install hideDot?

-

Install hideDot with Homebrew: run brew tap youhide/homebrew-youhide - followed by brew install hidedot.

+

Install hideDot with Homebrew: run brew install youhide/tap/hidedot.

Which operating systems does hideDot support?

diff --git a/.github/scripts/update-tap-formula.sh b/.github/scripts/update-tap-formula.sh deleted file mode 100644 index 02106a7..0000000 --- a/.github/scripts/update-tap-formula.sh +++ /dev/null @@ -1,101 +0,0 @@ -#!/usr/bin/env bash -# Render a Homebrew formula for a prebuilt-binary release and push it to the tap. -# -# Everything is parameterised via environment variables so the same script can -# be reused across projects (e.g. hidedot and hidetop). It reads the per-archive -# checksums produced by GoReleaser (dist/checksums.txt) and installs the -# prebuilt binary — no compilation on the user's machine. -# -# Required env: -# TAP_TOKEN GitHub token with write access to the tap repo -# TAP_REPO owner/name of the tap (e.g. youhide/homebrew-youhide) -# RELEASE_REPO owner/name of the project (e.g. youhide/hideDot) -# PROJECT_NAME GoReleaser ProjectName / archive prefix (e.g. hideDot) -# FORMULA_NAME formula file + binary name (e.g. hidedot) -# BINARY_NAME binary name inside the archive (e.g. hidedot) -# DESCRIPTION formula desc -# HOMEPAGE formula homepage -# LICENSE SPDX license id -# TAG release tag (e.g. v0.0.7) -set -euo pipefail - -: "${TAP_TOKEN:?}"; : "${TAP_REPO:?}"; : "${RELEASE_REPO:?}" -: "${PROJECT_NAME:?}"; : "${FORMULA_NAME:?}"; : "${BINARY_NAME:?}" -: "${DESCRIPTION:?}"; : "${HOMEPAGE:?}"; : "${LICENSE:?}"; : "${TAG:?}" - -version="${TAG#v}" -checksums="dist/checksums.txt" -base_url="https://github.com/${RELEASE_REPO}/releases/download/${TAG}" -class_name="$(printf '%s' "${FORMULA_NAME:0:1}" | tr '[:lower:]' '[:upper:]')${FORMULA_NAME:1}" - -darwin_arm="${PROJECT_NAME}_Darwin_arm64.tar.gz" -darwin_amd="${PROJECT_NAME}_Darwin_x86_64.tar.gz" -linux_arm="${PROJECT_NAME}_Linux_arm64.tar.gz" -linux_amd="${PROJECT_NAME}_Linux_x86_64.tar.gz" - -sha_for() { - local file="$1" sha - sha="$(awk -v f="$file" '$2 == f {print $1}' "$checksums")" - if [ -z "$sha" ]; then - echo "::error::checksum not found for $file in $checksums" >&2 - exit 1 - fi - printf '%s' "$sha" -} - -work="$(mktemp -d)" -git clone --depth 1 "https://x-access-token:${TAP_TOKEN}@github.com/${TAP_REPO}.git" "$work" - -mkdir -p "$work/Formula" -cat > "$work/Formula/${FORMULA_NAME}.rb" < Recent Homebrew versions require you to trust third-party taps before the > first install. If you see `Refusing to load formula ... from untrusted tap`, -> run `brew trust youhide/youhide` once and re-run the install. +> run `brew trust youhide/tap` once and re-run the install. ## Usage