From 65d5f3fde9aea689f65378f6c5be450ac4623f1c Mon Sep 17 00:00:00 2001 From: Kyle Rosenberg Date: Thu, 7 Apr 2022 12:28:24 -0400 Subject: [PATCH] unify the appId between electron-builder and application --- electron-builder.js | 2 +- src/background.ts | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/electron-builder.js b/electron-builder.js index b9662530..8bffcae4 100644 --- a/electron-builder.js +++ b/electron-builder.js @@ -1,5 +1,5 @@ module.exports = { - appId: "pw.electron.android-messages", + appId: "pw.kmr.amd", artifactName: "${productName}-v${version}-${os}-${arch}.${ext}", productName: "AndroidMessages", copyright: "Copyright 2020 Kyle Rosenberg", diff --git a/src/background.ts b/src/background.ts index 6292c10e..8202c01c 100644 --- a/src/background.ts +++ b/src/background.ts @@ -47,12 +47,8 @@ if (IS_MAC) { }); } +app.on("ready", () => app.setAppUserModelId("pw.kmr.amd")); app.on("ready", () => { - if (IS_WINDOWS) { - app.setAppUserModelId("pw.kmr.android-messages-desktop"); - app.setAsDefaultProtocolClient("android-messages-desktop"); - } - trayManager = new TrayManager(); new MenuManager();