diff --git a/.gitignore b/.gitignore
index 850c9322..3c080186 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,7 +7,6 @@ node_modules/
release/
npm-debug.log*
-build/
dist/
test-results.xml
@@ -18,4 +17,4 @@ testUserData
src/browser/*.png
src/browser/*.svg
src/browser/*.woff2
-src/browser/assets/fonts/
\ No newline at end of file
+src/browser/assets/fonts/
diff --git a/build/entitlements.mac.plist b/build/entitlements.mac.plist
new file mode 100644
index 00000000..b4fb81fc
--- /dev/null
+++ b/build/entitlements.mac.plist
@@ -0,0 +1,18 @@
+
+
+
+
+ com.apple.security.device.microphone
+
+ com.apple.security.device.camera
+
+ com.apple.security.device.audio-input
+
+ com.apple.security.cs.allow-jit
+
+ com.apple.security.cs.allow-unsigned-executable-memory
+
+ com.apple.security.cs.allow-dyld-environment-variables
+
+
+
diff --git a/electron-builder.json b/electron-builder.json
index 03bb3c2f..df44b579 100644
--- a/electron-builder.json
+++ b/electron-builder.json
@@ -77,7 +77,13 @@
}
],
"hardenedRuntime": true,
- "gatekeeperAssess": true
+ "gatekeeperAssess": true,
+ "entitlements": "./build/entitlements.mac.plist",
+ "entitlementsInherit": "./build/entitlements.mac.plist",
+ "extendInfo": {
+ "NSMicrophoneUsageDescription": "Microphone access may be used by Mattermost plugins, such as Jitsi video conferencing.",
+ "NSCameraUsageDescription": "Camera access may be used by Mattermost plugins, such as Jitsi video conferencing."
+ }
},
"dmg": {
"background": "resources/osx/DMG_BG.png",
diff --git a/resources/osx/entitlements.mac.inherit.plist b/resources/osx/entitlements.mac.inherit.plist
deleted file mode 100644
index 754872a4..00000000
--- a/resources/osx/entitlements.mac.inherit.plist
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
- com.apple.security.cs.allow-jit
-
- com.apple.security.cs.allow-unsigned-executable-memory
-
- com.apple.security.cs.allow-dyld-environment-variables
-
-
-
-