aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorKenneth Chew <kenneth.c0@protonmail.com>2022-04-17 21:52:46 -0400
committerKenneth Chew <kenneth.c0@protonmail.com>2022-04-19 11:36:03 -0400
commit9462dd3ddc55e3e48e47ca794c05e11cabb6226e (patch)
tree7c3a9833da5f3ef7c01f320e41179029a372581b /cmake
parentf13c776099ff58951cbe0d26bfb230f82044a229 (diff)
downloadPrismLauncher-9462dd3ddc55e3e48e47ca794c05e11cabb6226e.tar.gz
PrismLauncher-9462dd3ddc55e3e48e47ca794c05e11cabb6226e.tar.bz2
PrismLauncher-9462dd3ddc55e3e48e47ca794c05e11cabb6226e.zip
Improve security by enabling hardened runtime for macOS
This change also fixes a bug on recent versions of macOS where Minecraft mods that requested access to the microphone would silently fail.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/MacOSXBundleInfo.plist.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/MacOSXBundleInfo.plist.in b/cmake/MacOSXBundleInfo.plist.in
index 050123ee..0e3a43c6 100644
--- a/cmake/MacOSXBundleInfo.plist.in
+++ b/cmake/MacOSXBundleInfo.plist.in
@@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
+ <key>NSCameraUsageDescription</key>
+ <string>A Minecraft mod wants to access your camera.</string>
+ <key>NSMicrophoneUsageDescription</key>
+ <string>A Minecraft mod wants to access your microphone.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHighResolutionCapable</key>