Skip to content

Commit 2814128

Browse files
committed
Update docs to match new behaviour after removing gulp
1 parent 3463505 commit 2814128

File tree

1 file changed

+11
-22
lines changed
  • docs/getting-started/clients/browser

1 file changed

+11
-22
lines changed

docs/getting-started/clients/browser/index.md

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,14 @@ Before you start, you must complete the [Clients repository setup instructions](
1010

1111
## Build Instructions
1212

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.
1414

1515
```bash
1616
cd apps/browser
17-
npm run build:watch
18-
```
19-
20-
:::note
17+
npm run build:watch:chrome
2118

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+
```
2821

2922
2. Load the unpacked browser extension in your browser using the instructions in the next section.
3023

@@ -194,15 +187,11 @@ The easiest way to develop the extension is to build and debug it using Xcode.
194187
1. Build the extension:
195188

196189
```bash
197-
npm run build:watch:mv2
190+
npm run build:watch:safari
198191
```
199192

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.
206195

207196
:::note
208197

@@ -213,14 +202,14 @@ not automatically reload.
213202

214203
#### Production build
215204

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.
219208
220209
1. Build the extension for Safari
221210
222211
```bash
223-
npm run dist:safari:dmg
212+
npm run dist:safari
224213
```
225214
226215
2. Open Safari and check Settings to confirm that the extension is installed and enabled

0 commit comments

Comments
 (0)