Skip to content

Commit fdf4db7

Browse files
committed
Fix 'damaged' app issue and update documentation
1 parent e816212 commit fdf4db7

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.github/workflows/build-macos-app.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ jobs:
6565
echo "Found app at: $APP_PATH"
6666
cp -R "$APP_PATH" dist/
6767
cd dist
68+
69+
# Remove extended attributes that might cause "damaged" errors
70+
echo "Removing extended attributes from app bundle..."
71+
xattr -cr "GitHub Copilot.app"
72+
6873
# Compress the .app bundle
6974
APP_NAME=$(basename "$APP_PATH")
7075
zip -r "GitHubCopilotApp-$RELEASE_VERSION.zip" "$APP_NAME"
@@ -85,9 +90,8 @@ jobs:
8590
draft: true
8691
prerelease: false
8792
generate_release_notes: true
88-
name: "GitHub Copilot App ${{ env.RELEASE_VERSION }}"
8993
body: |
90-
## GitHub Copilot App ${{ env.RELEASE_VERSION }}
94+
## GitHub Copilot App
9195
9296
A simple macOS application that provides a clean wrapper for GitHub Copilot's web interface.
9397
@@ -96,6 +100,15 @@ jobs:
96100
2. Extract and move GitHub Copilot.app to your Applications folder
97101
3. Right-click and select "Open" the first time you run it (to bypass Gatekeeper)
98102
99-
This is a development build and is not signed with an Apple Developer certificate.
103+
### Troubleshooting: "App is damaged" Error
104+
If you see a message saying the app is "damaged and can't be opened":
105+
106+
1. Open Terminal and run this command:
107+
```
108+
xattr -cr /Applications/GitHub\ Copilot.app
109+
```
110+
2. Try opening the app again
111+
112+
This happens because the app isn't signed with an Apple Developer certificate. The command removes quarantine attributes that macOS adds to downloaded files.
100113
env:
101114
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ I built this app to create a simple, distraction-free way to use GitHub Copilot
3131
3. Extract the zip and move `GitHub Copilot.app` to your Applications folder
3232
4. When opening for the first time, right-click the app and select "Open" to bypass Gatekeeper
3333

34+
#### Troubleshooting: "App is damaged" Error
35+
36+
If you see a message saying the app is "damaged and can't be opened":
37+
38+
1. Open Terminal and run this command:
39+
```
40+
xattr -cr /Applications/GitHub\ Copilot.app
41+
```
42+
2. Try opening the app again
43+
44+
This happens because the app isn't signed with an Apple Developer certificate. The command removes quarantine attributes that macOS adds to downloaded files.
45+
3446
### Option 2: Build from Source
3547

3648
1. Clone this repository

0 commit comments

Comments
 (0)