From 3d6ea809be1b03e8bacaaf8a025fef3e50d67af6 Mon Sep 17 00:00:00 2001 From: Avijit Das Date: Sat, 8 Feb 2025 19:50:11 +0530 Subject: [PATCH] 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. --- package.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package.json b/package.json index 15e4b33c9..8f3d05026 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,14 @@ "build": { "appId": "org.zulip.zulip-electron", "asar": true, + "protocols": [ + { + "name": "Zulip", + "schemes": [ + "zulip" + ] + } + ], "asarUnpack": [ "**/*.node" ],