Skip to content

Commit 71a9cf8

Browse files
committed
try fixing instructions for unsigned app
1 parent d895a3c commit 71a9cf8

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,22 @@ jobs:
5757
- macOS 10.15 or later
5858
- Node.js (for ccusage CLI functionality)
5959
60-
**Note**: This build is not code-signed. You may need to right-click and select "Open" the first time you run it, or go to System Preferences > Security & Privacy to allow it to run.`
60+
**Important: First-time setup for unsigned app**
61+
62+
If you see "ccusage-macos-menubar.app is damaged and can't be opened":
63+
64+
1. Open Terminal
65+
2. Run this command:
66+
\`\`\`bash
67+
xattr -cr /Applications/ccusage-macos-menubar.app
68+
\`\`\`
69+
3. The app should now open normally
70+
71+
Alternative method:
72+
- Right-click the app and select "Open"
73+
- Click "Open" in the dialog that appears
74+
75+
This only needs to be done once. The app is not actually damaged - macOS shows this message for unsigned apps downloaded from the internet.`
6176
});
6277
return data.id;
6378

CLAUDE.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,24 @@ No Apple Developer account required. To create a release:
183183

184184
### Requirements
185185
- Targets Apple Silicon Macs only (M1/M2/M3)
186-
- No code signing (users need to right-click → Open on first launch)
186+
- No code signing (see "First Run Instructions" below)
187187
- Requires Node.js installed on the user's machine for ccusage functionality
188188

189+
### First Run Instructions
190+
Since the app is not code-signed, macOS may show "app is damaged and can't be opened" when downloading from GitHub releases.
191+
192+
**To fix this:**
193+
```bash
194+
# After moving the app to /Applications, run:
195+
xattr -cr /Applications/ccusage-macos-menubar.app
196+
```
197+
198+
**Alternative method:**
199+
1. Right-click the app and select "Open"
200+
2. Click "Open" in the security dialog
201+
202+
This only needs to be done once. The app is safe - macOS shows this for all unsigned apps downloaded from the internet.
203+
189204
### Manual Release Process
190205
If you prefer to build and release manually:
191206
```bash

0 commit comments

Comments
 (0)