From 2a6f0ee244bc5fb8b1979c9f1c877fe690e6549e Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Sun, 7 Dec 2025 14:49:14 +0000 Subject: [PATCH] Move to casks. --- .goreleaser.yaml | 17 ++++++++++++----- README.md | 9 +++++++-- docs/index.html | 4 ++-- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 491f565..9748988 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -22,7 +22,7 @@ builds: archives: - id: lolcathost - format: tar.gz + formats: [tar.gz] name_template: "lolcathost-{{ .Version }}-{{ .Os }}-{{ .Arch }}" files: - LICENSE @@ -49,14 +49,21 @@ release: draft: false prerelease: auto -brews: +homebrew_casks: - repository: owner: lukaszraczylo name: homebrew-taps token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" - directory: Formula + directory: Casks homepage: https://github.com/lukaszraczylo/lolcathost description: "Dynamic host management tool for macOS and Linux with TUI" license: MIT - test: | - system "#{bin}/lolcathost", "--version" + url: + verified: github.com/lukaszraczylo/lolcathost + hooks: + post: + install: | + if OS.mac? + system_command "/usr/bin/xattr", + args: ["-dr", "com.apple.quarantine", "#{staged_path}/lolcathost"] + end diff --git a/README.md b/README.md index b8448d6..efa430c 100644 --- a/README.md +++ b/README.md @@ -50,12 +50,17 @@ lolcathost manages your `/etc/hosts` file with an interactive terminal interface ## Installation -### Homebrew (macOS/Linux) +### Homebrew (macOS) ```bash -brew install lukaszraczylo/taps/lolcathost +brew install --cask lukaszraczylo/taps/lolcathost ``` +> **Note**: If you previously installed via `brew install lukaszraczylo/taps/lolcathost` (formula), uninstall first: +> ```bash +> brew uninstall lolcathost +> ``` + After Homebrew installation, run: ```bash diff --git a/docs/index.html b/docs/index.html index 398fb65..7b95a19 100644 --- a/docs/index.html +++ b/docs/index.html @@ -276,9 +276,9 @@

- Homebrew (macOS/Linux) + Homebrew (macOS)

-
brew install lukaszraczylo/taps/lolcathost
+                        
brew install --cask lukaszraczylo/taps/lolcathost
 sudo lolcathost --install