Skip to content

Commit a86a7bc

Browse files
laurentftechclaude
andcommitted
Fix brew service to use app bundle path directly
The symlink in /usr/local/bin causes Bundle.main.bundleIdentifier to be nil. Using the direct path to the .app bundle fixes this. Also added update instructions to README. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ed7e076 commit a86a7bc

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
end
9393
9494
service do
95-
run [opt_bin/"ntfy-macos", "serve"]
95+
run [opt_prefix/"ntfy-macos.app/Contents/MacOS/ntfy-macos", "serve"]
9696
keep_alive true
9797
log_path var/"log/ntfy-macos/stdout.log"
9898
error_log_path var/"log/ntfy-macos/stderr.log"

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ swift build -c release
4444
sudo cp .build/release/ntfy-macos /usr/local/bin/
4545
```
4646

47+
### Updating
48+
49+
```bash
50+
# Update via Homebrew
51+
brew update && brew upgrade ntfy-macos
52+
53+
# Restart the service to apply the update
54+
brew services restart ntfy-macos
55+
```
56+
4757
## Quick Start
4858

4959
1. **Initialize Configuration**

0 commit comments

Comments
 (0)