Skip to content

Commit d509bdf

Browse files
authored
Fix for MacOS quarantine issue (#61)
* chore: add post-install hooks for brew to handle macos quarantine * docs: update brew instructions with note for versions < v1.9.1
1 parent bb65727 commit d509bdf

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.goreleaser.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,10 @@ homebrew_casks:
130130
homepage: https://blues.com
131131
description: Note CLI
132132
license: MIT
133+
hooks:
134+
post:
135+
install: |
136+
if OS.mac?
137+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/notecard"]
138+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/notehub"]
139+
end

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ The Notecard & Notehub CLIs can be installed either with a package manager (`hom
99
### Homebrew
1010

1111
```bash
12-
brew tap blues/note-cli
13-
brew install note-cli
12+
brew install --cask blues/note-cli/note-cli
1413
```
1514

15+
> [!IMPORTANT]
16+
If you are upgrading from a version older than v1.9.1 to a newer version, using `brew`, you will need to uninstall first using `brew uninstall note-cli`.
17+
1618
### Downloading the binaries
1719

1820
For all releases, we have compiled the Notecard and Notehub utilities for different OS and architectures [here](https://github.com/blues/note-cli/releases).

0 commit comments

Comments
 (0)