Skip to content

Commit

Permalink
[PM-15395] Update node commands for building non-chrome browser exten…
Browse files Browse the repository at this point in the history
…sions (#488)

* update node commands for building non-chrome browser extensions

* remove unneeded instructions
  • Loading branch information
jprusik authored Nov 25, 2024
1 parent 2176771 commit 086680b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions docs/getting-started/clients/browser/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Before you start, you must complete the [Clients repository setup instructions](

The build commands use
[Manifest v3](https://developer.chrome.com/docs/extensions/develop/migrate/what-is-mv3) by
default. If you are building for Firefox or otherwise need a Manifest v2 build, you should use
the command `npm run build:watch:mv2` instead.
default. If you are building for a non-Chrome browser like Firefox or Safari, you should use the
command `npm run build:watch:<browser client name>` instead.

:::

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

```bash
npm run build:watch:mv2
npm run build:watch:safari
```

2. Edit `build/manifest.json`. Move the `nativeMessaging` permission from the `optional_permissions`
section into the `permissions` section
3. Edit `build/popup/index.html`, replace `<html class="__BROWSER__">` to
`<html class="browser_safari">`.
4. Open `src/safari/desktop.xcodeproj` in Xcode
5. Run the "desktop" target.
2. Open `src/safari/desktop.xcodeproj` in Xcode
3. Run the "desktop" target.

:::note

Expand Down

0 comments on commit 086680b

Please sign in to comment.