Skip to content

Commit 1895c86

Browse files
committed
Merge branch 'add-brew-install-instruction'
2 parents 01935eb + 4a952ac commit 1895c86

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ Thanks to [LSP-copilot](https://github.com/TerminalFi/LSP-copilot) for showing t
2222

2323
### Install
2424

25+
You can install it via [Homebrew](http://brew.sh/):
26+
27+
```bash
28+
brew install --cask copilot-for-xcode
29+
```
30+
31+
Or install it manually,
32+
2533
1. Download the `Copilot for Xcode.app` from the latest [release](https://github.com/intitni/CopilotForXcode/releases), and extract it to the Applications folder.
2634
2. Open the app, and click "Set Up Launch Agents" to set up a background running XPC Service that does the real job.
2735
3. Enable the extension in `System Settings.app`.
@@ -38,9 +46,9 @@ Thanks to [LSP-copilot](https://github.com/TerminalFi/LSP-copilot) for showing t
3846

3947
### Granting Permissions to the App
4048

41-
The first time the commands run, the extension will ask for the permissions needed.
49+
The first time the commands are run, the extension will ask for the necessary permissions. (except Input Monitoring, you have to enable it manually)
4250

43-
Or you can add them manually by going to the `Privacy & Security` tab in `System Settings.app`, and
51+
Or you can grant them manually by going to the `Privacy & Security` tab in `System Settings.app`, and
4452
- Accessibility API: Click `Accessibility`, and add `Copilot for Xcode.app` to the list.
4553
- Input Monitoring: Click `Input Monitoring` and add `Copilot for Xcode.app` to the list.
4654

@@ -52,7 +60,13 @@ Alternatively, you can skip the Launch Agent part and use other applications to
5260

5361
## Update
5462

55-
You can download the latest version manually from the latest [release](https://github.com/intitni/CopilotForXcode/releases).
63+
If the app was installed via Homebrew, you can update it by running:
64+
65+
```bash
66+
brew upgrade --cask copilot-for-xcode
67+
```
68+
69+
Alternatively, You can download the latest version manually from the latest [release](https://github.com/intitni/CopilotForXcode/releases).
5670

5771
If you are upgrading from a version lower than 0.6.0, don't forget to click `Restart XPC Service` in the application after the update to kill the old version and start the new one.
5872

0 commit comments

Comments
 (0)