From 85f29e12227a1c80d5a0ee4e17fe8c0a46df0281 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Mon, 22 Mar 2021 22:16:02 +0100 Subject: [PATCH] Write native messaging manifests for Chrome/edge beta/dev/canary (#804) --- resources/entitlements.mas.plist | 6 ++++++ src/main/nativeMessaging.main.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/resources/entitlements.mas.plist b/resources/entitlements.mas.plist index 179caab09c1..9df50da5cc9 100644 --- a/resources/entitlements.mas.plist +++ b/resources/entitlements.mas.plist @@ -12,7 +12,13 @@ /Library/Application Support/Mozilla/NativeMessagingHosts/ /Library/Application Support/Google/Chrome/NativeMessagingHosts/ + /Library/Application Support/Google/Chrome Beta/NativeMessagingHosts/ + /Library/Application Support/Google/Chrome Dev/NativeMessagingHosts/ + /Library/Application Support/Google/Chrome Canary/NativeMessagingHosts/ /Library/Application Support/Microsoft Edge/NativeMessagingHosts/ + /Library/Application Support/Microsoft Edge Beta/NativeMessagingHosts/ + /Library/Application Support/Microsoft Edge Dev/NativeMessagingHosts/ + /Library/Application Support/Microsoft Edge Canary/NativeMessagingHosts/ /Library/Application Support/Vivaldi/NativeMessagingHosts/ diff --git a/src/main/nativeMessaging.main.ts b/src/main/nativeMessaging.main.ts index a40f9d9d871..39f6cd0229b 100644 --- a/src/main/nativeMessaging.main.ts +++ b/src/main/nativeMessaging.main.ts @@ -161,7 +161,13 @@ export class NativeMessagingMain { return { 'Firefox': `${this.homedir()}/Library/Application\ Support/Mozilla/NativeMessagingHosts/`, 'Chrome': `${this.homedir()}/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/`, + 'Chrome Beta': `${this.homedir()}/Library/Application\ Support/Google/Chrome\ Beta/NativeMessagingHosts/`, + 'Chrome Dev': `${this.homedir()}/Library/Application\ Support/Google/Chrome\ Dev/NativeMessagingHosts/`, + 'Chrome Canary': `${this.homedir()}/Library/Application\ Support/Google/Chrome\ Canary/NativeMessagingHosts/`, 'Microsoft Edge': `${this.homedir()}/Library/Application\ Support/Microsoft\ Edge/NativeMessagingHosts/`, + 'Microsoft Edge Beta': `${this.homedir()}/Library/Application\ Support/Microsoft\ Edge\ Beta/NativeMessagingHosts/`, + 'Microsoft Edge Dev': `${this.homedir()}/Library/Application\ Support/Microsoft\ Edge\ Dev/NativeMessagingHosts/`, + 'Microsoft Edge Canary': `${this.homedir()}/Library/Application\ Support/Microsoft\ Edge\ Canary/NativeMessagingHosts/`, 'Vivaldi': `${this.homedir()}/Library/Application\ Support/Vivaldi/NativeMessagingHosts/`, }; }