Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ surf tab.list
```bash
surf install <extension-id> # Chrome (default)
surf install <extension-id> --browser brave # Brave
surf install <extension-id> --browser helium # Helium
surf install <extension-id> --browser all # All supported browsers
```

Supported: `chrome`, `chromium`, `brave`, `edge`, `arc`
Supported: `chrome`, `chromium`, `brave`, `edge`, `arc`, `helium`

### Uninstall

Expand Down
4 changes: 2 additions & 2 deletions native/cli.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ Arguments:

Options:
-b, --browser Browser(s) to install for (default: chrome)
Values: chrome, chromium, brave, edge, arc, all
Values: chrome, chromium, brave, edge, arc, helium, all
Multiple: --browser chrome,brave

Examples:
Expand Down Expand Up @@ -1805,7 +1805,7 @@ Remove native messaging host configuration.

Options:
-b, --browser Browser(s) to uninstall from (default: chrome)
Values: chrome, chromium, brave, edge, arc, all
Values: chrome, chromium, brave, edge, arc, helium, all
-a, --all Uninstall from all browsers and remove wrapper

Examples:
Expand Down
10 changes: 8 additions & 2 deletions scripts/install-native-host.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ const BROWSERS = {
linux: null,
win32: null,
},
helium: {
name: "Helium",
darwin: "Library/Application Support/net.imput.helium/NativeMessagingHosts",
linux: null,
win32: null,
},
};

const NODE_PATHS = {
Expand Down Expand Up @@ -218,7 +224,7 @@ Arguments:

Options:
-b, --browser Browser(s) to install for (default: chrome)
Values: chrome, chromium, brave, edge, arc, all
Values: chrome, chromium, brave, edge, arc, helium, all
Multiple: --browser chrome,brave

Examples:
Expand All @@ -233,7 +239,7 @@ function main() {

if (!extensionId) {
console.error("Error: Extension ID required");
console.error("Usage: install-native-host.cjs <extension-id> [--browser chrome|brave|edge|all]");
console.error("Usage: install-native-host.cjs <extension-id> [--browser chrome|chromium|brave|edge|arc|helium|all]");
console.error("\nFind your extension ID at chrome://extensions (enable Developer Mode)");
process.exit(1);
}
Expand Down
8 changes: 7 additions & 1 deletion scripts/uninstall-native-host.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ const BROWSERS = {
linux: null,
win32: null,
},
helium: {
name: "Helium",
darwin: "Library/Application Support/net.imput.helium/NativeMessagingHosts",
linux: null,
win32: null,
},
};

function getWrapperDir() {
Expand Down Expand Up @@ -137,7 +143,7 @@ Usage: uninstall-native-host.cjs [options]

Options:
-b, --browser Browser(s) to uninstall from (default: chrome)
Values: chrome, chromium, brave, edge, arc, all
Values: chrome, chromium, brave, edge, arc, helium, all
-a, --all Uninstall from all browsers and remove wrapper

Examples:
Expand Down