Created
August 8, 2022 09:08
-
-
Save idanwork/b5ce9b6af0b2ac944c387cc2e9f67673 to your computer and use it in GitHub Desktop.
Error when adding entitlements file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.assets.movies.read-write</key> | |
<true/> | |
<key>com.apple.security.assets.music.read-write</key> | |
<true/> | |
<key>com.apple.security.assets.pictures.read-write</key> | |
<true/> | |
<key>com.apple.security.device.audio-input</key> | |
<true/> | |
<key>com.apple.security.device.camera</key> | |
<true/> | |
<key>com.apple.security.device.usb</key> | |
<true/> | |
<key>com.apple.security.files.downloads.read-write</key> | |
<true/> | |
<key>com.apple.security.files.user-selected.read-write</key> | |
<true/> | |
<key>com.apple.security.inherit</key> | |
<true/> | |
<key>com.apple.security.network.client</key> | |
<true/> | |
<key>com.apple.security.network.server</key> | |
<true/> | |
</dict> | |
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.assets.movies.read-write</key> | |
<true/> | |
<key>com.apple.security.assets.music.read-write</key> | |
<true/> | |
<key>com.apple.security.assets.pictures.read-write</key> | |
<true/> | |
<key>com.apple.security.device.audio-input</key> | |
<true/> | |
<key>com.apple.security.device.camera</key> | |
<true/> | |
<key>com.apple.security.device.usb</key> | |
<true/> | |
<key>com.apple.security.files.downloads.read-write</key> | |
<true/> | |
<key>com.apple.security.files.user-selected.read-write</key> | |
<true/> | |
<key>com.apple.security.network.client</key> | |
<true/> | |
<key>com.apple.security.network.server</key> | |
<true/> | |
</dict> | |
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, dialog } = require("electron"); | |
app.once("ready", () => | |
dialog.showMessageBox(null, | |
{ | |
message: "Close the application?", buttons: ["Yes", "Also Yes but in blue"], defaultId: 1 | |
} | |
) | |
.then(() => app.quit()) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "entitlements-issue", | |
"version": "1.0.0", | |
"description": "", | |
"main": "main.js", | |
"scripts": { | |
"start": "electron ." | |
}, | |
"author": "", | |
"license": "ISC", | |
"devDependencies": { | |
"electron": "^20.0.1", | |
"electron-builder": "^23.3.3" | |
}, | |
"build": { | |
"files": [ | |
"package.json", | |
"main.js", | |
"node_modules" | |
], | |
"mac": { | |
"entitlements": "entitlements.mac.plist", | |
"entitlementsInherit": "entitlements.mac.inherit.plist" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment