@@ -10,21 +10,14 @@ Before you start, you must complete the [Clients repository setup instructions](
10
10
11
11
## Build Instructions
12
12
13
- 1 . Build and run the extension:
13
+ 1 . Build and run the extension, this command differs depending on the browser you are building for.
14
14
15
15
``` bash
16
16
cd apps/browser
17
- npm run build:watch
18
- ```
19
-
20
- :::note
17
+ npm run build:watch:chrome
21
18
22
- The build commands use
23
- [Manifest v3](https://developer.chrome.com/docs/extensions/develop/migrate/what-is-mv3) by
24
- default. If you are building for Firefox or otherwise need a Manifest v2 build, you should use
25
- the command ` npm run build:watch:mv2` instead.
26
-
27
- :::
19
+ # Replace chrome with "edge", "firefox", "opera" or "safari" to build for other browsers.
20
+ ```
28
21
29
22
2. Load the unpacked browser extension in your browser using the instructions in the next section.
30
23
@@ -194,15 +187,11 @@ The easiest way to develop the extension is to build and debug it using Xcode.
194
187
1. Build the extension:
195
188
196
189
` ` ` bash
197
- npm run build:watch:mv2
190
+ npm run build:watch:safari
198
191
` ` `
199
192
200
- 2. Edit ` build/manifest.json` . Move the ` nativeMessaging` permission from the ` optional_permissions`
201
- section into the ` permissions` section
202
- 3. Edit ` build/popup/index.html` , replace ` < html class=" __BROWSER__" > ` to
203
- ` < html class=" browser_safari" > ` .
204
- 4. Open ` src/safari/desktop.xcodeproj` in Xcode
205
- 5. Run the " desktop" target.
193
+ 2. Open ` src/safari/desktop.xcodeproj` in Xcode
194
+ 3. Run the " desktop" target.
206
195
207
196
:::note
208
197
@@ -213,14 +202,14 @@ not automatically reload.
213
202
214
203
# ### Production build
215
204
216
- The other alternative is to use the " proper" build process through gulp . This method doesn' t require
217
- any manual processing of the output since gulp does it for us. However we have to completely rebuild
218
- the extension for every change, which is slower.
205
+ The other alternative is to use the " proper" build process. This method doesn' t require manually
206
+ opening Xcode, however we have to completely rebuild the extension for every change, which is
207
+ slower.
219
208
220
209
1. Build the extension for Safari
221
210
222
211
```bash
223
- npm run dist:safari:dmg
212
+ npm run dist:safari
224
213
```
225
214
226
215
2. Open Safari and check Settings to confirm that the extension is installed and enabled
0 commit comments