Add UsageDescriptions to Info.plist (#2609)
This updates our dependency on cargo-bundle to point at a fork I've created that adjusts the latest version's behavior to work for our use case. This PR also updates the Zed Info.plist to include the following keys: - NSSystemAdministrationUsageDescription - NSAppleEventsUsageDescription - NSBluetoothAlwaysUsageDescription - NSCalendarsUsageDescription - NSCameraUsageDescription - NSContactsUsageDescription - NSLocationAlwaysUsageDescription - NSLocationUsageDescription - NSLocationWhenInUseUsageDescription - NSMicrophoneUsageDescription - NSSpeechRecognitionUsageDescription - NSRemindersUsageDescription Release Notes: - Bug fix: Allow applications run via the Zed terminal to request authorization for macOS services (e.g. microphone and camera)
This commit is contained in:
commit
75b1f60126
4 changed files with 34 additions and 11 deletions
|
@ -147,15 +147,19 @@ icon = ["resources/app-icon-preview@2x.png", "resources/app-icon-preview.png"]
|
|||
identifier = "dev.zed.Zed-Dev"
|
||||
name = "Zed Dev"
|
||||
osx_minimum_system_version = "10.15.7"
|
||||
osx_info_plist_exts = ["resources/info/*"]
|
||||
|
||||
[package.metadata.bundle-preview]
|
||||
icon = ["resources/app-icon-preview@2x.png", "resources/app-icon-preview.png"]
|
||||
identifier = "dev.zed.Zed-Preview"
|
||||
name = "Zed Preview"
|
||||
osx_minimum_system_version = "10.15.7"
|
||||
osx_info_plist_exts = ["resources/info/*"]
|
||||
|
||||
|
||||
[package.metadata.bundle-stable]
|
||||
icon = ["resources/app-icon@2x.png", "resources/app-icon.png"]
|
||||
identifier = "dev.zed.Zed"
|
||||
name = "Zed"
|
||||
osx_minimum_system_version = "10.15.7"
|
||||
osx_info_plist_exts = ["resources/info/*"]
|
||||
|
|
24
crates/zed/resources/info/Permissions.plist
Normal file
24
crates/zed/resources/info/Permissions.plist
Normal file
|
@ -0,0 +1,24 @@
|
|||
<key>NSSystemAdministrationUsageDescription</key>
|
||||
<string>The operation being performed by a program in Zed requires elevated permission.</string>
|
||||
<key>NSAppleEventsUsageDescription</key>
|
||||
<string>An application in Zed wants to use AppleScript.</string>
|
||||
<key>NSBluetoothAlwaysUsageDescription</key>
|
||||
<string>An application in Zed wants to use Bluetooth.</string>
|
||||
<key>NSCalendarsUsageDescription</key>
|
||||
<string>An application in Zed wants to use Calendar data.</string>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>An application in Zed wants to use the camera.</string>
|
||||
<key>NSContactsUsageDescription</key>
|
||||
<string>An application in Zed wants to use your contacts.</string>
|
||||
<key>NSLocationAlwaysUsageDescription</key>
|
||||
<string>An application in Zed wants to use your location information, even in the background.</string>
|
||||
<key>NSLocationUsageDescription</key>
|
||||
<string>An application in Zed wants to use your location information.</string>
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string>An application in Zed wants to use your location information while active.</string>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>An application in Zed wants to use your microphone.</string>
|
||||
<key>NSSpeechRecognitionUsageDescription</key>
|
||||
<string>An application in Zed wants to use speech recognition.</string>
|
||||
<key>NSRemindersUsageDescription</key>
|
||||
<string>An application in Zed wants to use your reminders.</string>
|
Loading…
Add table
Add a link
Reference in a new issue