Skip to content

Commit 3d6ea80

Browse files
committedFeb 8, 2025
pass the protocol in the package.json in build section
To register a custom protocol for your Electron application across all platforms (Windows, macOS, and Linux), you can define it in the build section of your package.json file using the protocols property provided by electron-builder.
1 parent 58206cb commit 3d6ea80

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎package.json

+8
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@
4141
"build": {
4242
"appId": "org.zulip.zulip-electron",
4343
"asar": true,
44+
"protocols": [
45+
{
46+
"name": "Zulip",
47+
"schemes": [
48+
"zulip"
49+
]
50+
}
51+
],
4452
"asarUnpack": [
4553
"**/*.node"
4654
],

0 commit comments

Comments
 (0)