Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs to match new behaviour after removing gulp #469

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 10 additions & 22 deletions docs/getting-started/clients/browser/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,14 @@ Before you start, you must complete the [Clients repository setup instructions](

## Build Instructions

1. Build and run the extension:
1. Build and run the extension, this command differs depending on the browser you are building for.

```bash
cd apps/browser
npm run build:watch
# Replace chrome with "edge", "firefox", "opera" or "safari" to build for other browsers.
Hinton marked this conversation as resolved.
Show resolved Hide resolved
npm run build:watch:chrome
```

:::note

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.

:::

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

## Environment Setup
Expand Down Expand Up @@ -194,15 +186,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 All @@ -213,14 +201,14 @@ not automatically reload.

#### Production build

The other alternative is to use the "proper" build process through gulp. This method doesn't require
any manual processing of the output since gulp does it for us. However we have to completely rebuild
the extension for every change, which is slower.
The other alternative is to use the "proper" build process. This method doesn't require manually
opening Xcode, however we have to completely rebuild the extension for every change, which is
slower.

1. Build the extension for Safari

```bash
npm run dist:safari:dmg
npm run dist:safari
```

2. Open Safari and check Settings to confirm that the extension is installed and enabled
Expand Down