From 648607d080aa4506349852e6a049070c9d85a577 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Wed, 17 Jun 2020 22:34:06 +0530 Subject: [PATCH] add usage description for protected resources on mac --- build/Info.plist | 34 ---------------------------------- electron-builder.json | 42 +++++++++++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 35 deletions(-) delete mode 100644 build/Info.plist diff --git a/build/Info.plist b/build/Info.plist deleted file mode 100644 index 4d91015b..00000000 --- a/build/Info.plist +++ /dev/null @@ -1,34 +0,0 @@ - - - CFBundleDocumentTypes - - - CFBundleTypeName - Folders - CFBundleTypeRole - Viewer - LSItemContentTypes - - public.folder - com.apple.bundle - com.apple.package - com.apple.resolvable - - LSHandlerRank - Alternate - - - CFBundleTypeName - UnixExecutables - CFBundleTypeRole - Shell - LSItemContentTypes - - public.unix-executable - - LSHandlerRank - Alternate - - - - diff --git a/electron-builder.json b/electron-builder.json index 958cb668..33ca9571 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -52,7 +52,47 @@ }, "mac": { "category": "public.app-category.developer-tools", - "extendInfo": "build/Info.plist", + "extendInfo": { + "CFBundleDocumentTypes": [ + { + "CFBundleTypeName": "Folders", + "CFBundleTypeRole": "Viewer", + "LSHandlerRank": "Alternate", + "LSItemContentTypes": [ + "public.folder", + "com.apple.bundle", + "com.apple.package", + "com.apple.resolvable" + ] + }, + { + "CFBundleTypeName": "UnixExecutables", + "CFBundleTypeRole": "Shell", + "LSHandlerRank": "Alternate", + "LSItemContentTypes": [ + "public.unix-executable" + ] + } + ], + "NSAppleEventsUsageDescription": "An application in Hyper wants to use AppleScript.", + "NSCalendarsUsageDescription": "An application in Hyper wants to access Calendar data.", + "NSCameraUsageDescription": "An application in Hyper wants to use the Camera.", + "NSContactsUsageDescription": "An application in Hyper wants to access your Contacts.", + "NSDesktopFolderUsageDescription": "An application in Hyper wants to access the Desktop folder.", + "NSDocumentsFolderUsageDescription": "An application in Hyper wants to access the Documents folder.", + "NSDownloadsFolderUsageDescription": "An application in Hyper wants to access the Downloads folder.", + "NSFileProviderDomainUsageDescription": "An application in Hyper wants to access files managed by a file provider.", + "NSFileProviderPresenceUsageDescription": "An application in Hyper wants to be informed when other apps access files that it manages.", + "NSLocationUsageDescription": "An application in Hyper wants to access your location information.", + "NSMicrophoneUsageDescription": "An application in Hyper wants to use your microphone.", + "NSMotionUsageDescription": "An application in Hyper wants to use the device’s accelerometer.", + "NSNetworkVolumesUsageDescription": "An application in Hyper wants to access files on a network volume.", + "NSPhotoLibraryUsageDescription": "An application in Hyper wants to access the photo library.", + "NSRemindersUsageDescription": "An application in Hyper wants to access your reminders.", + "NSRemovableVolumesUsageDescription": "An application in Hyper wants to access files on a removable volume.", + "NSSpeechRecognitionUsageDescription": "An application in Hyper wants to send user data to Apple’s speech recognition servers.", + "NSSystemAdministrationUsageDescription": "The operation being performed by an application in Hyper requires elevated permission." + }, "darkModeSupport": true }, "deb": {