Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
add config file for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkame committed May 16, 2020
1 parent a6e8f31 commit a8fb2b1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
14 changes: 14 additions & 0 deletions mac_config/entitlements.mac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
</dict>
</plist>
15 changes: 14 additions & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,18 @@ module.exports = {
pages: {
index: 'src/main.js',
welcome: 'src/welcome.js'
}
},
pluginOptions: {
electronBuilder: {
builderOptions: {
mac : {
extendInfo: {
"NSCameraUsageDescription": "Please give us access to your camera"
},
"entitlements": "mac_config/entitlements.mac.plist",
"entitlementsInherit": "mac_config/entitlements.mac.plist",
}
},
}
},
}

0 comments on commit a8fb2b1

Please sign in to comment.