Skip to content

Commit efe938b

Browse files
authored
feat: gitify dev protocol (#1801)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent db1ba73 commit efe938b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"build": {
7070
"productName": "Gitify",
7171
"appId": "com.electron.gitify",
72-
"copyright": "Copyright © 2024 Gitify Team",
72+
"copyright": "Copyright © 2025 Gitify Team",
7373
"asar": true,
7474
"files": [
7575
"assets/images/*",
@@ -83,7 +83,7 @@
8383
"protocols": [
8484
{
8585
"name": "Gitify",
86-
"schemes": ["gitify"]
86+
"schemes": ["gitify", "gitify-dev"]
8787
}
8888
],
8989
"mac": {

src/main/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ const menuBuilder = new MenuBuilder(mb);
3838
const contextMenu = menuBuilder.buildMenu();
3939

4040
// Register your app as the handler for a custom protocol
41-
app.setAsDefaultProtocolClient('gitify');
41+
const protocol =
42+
process.env.NODE_ENV === 'development' ? 'gitify-dev' : 'gitify';
43+
app.setAsDefaultProtocolClient(protocol);
4244

4345
if (isMacOS() || isWindows()) {
4446
/**

0 commit comments

Comments
 (0)