Skip to content

Instantly share code, notes, and snippets.

@nickbeaulieu
Last active October 28, 2022 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickbeaulieu/514c99e92b15be597e80f5c7064dc24f to your computer and use it in GitHub Desktop.
Save nickbeaulieu/514c99e92b15be597e80f5c7064dc24f to your computer and use it in GitHub Desktop.
Electron Builder configuration
<?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.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>
"build": {
"productName": "MyApp",
"appId": "com.my.app",
"asar": true,
"asarUnpack": "**\\*.{node,dll}",
"files": [
"dist",
"node_modules",
"package.json",
],
"afterSign": "./scripts/notarize.js",
"mac": {
"type": "distribution",
"hardenedRuntime": true,
"entitlements": "assets/entitlements.mac.plist",
"entitlementsInherit": "assets/entitlements.mac.plist",
"gatekeeperAssess": false
},
"dmg": {
"background": "assets/background.png",
"contents": [
{
"x": 122,
"y": 236
},
{
"x": 428,
"y": 236,
"type": "link",
"path": "/Applications"
}
],
"window": {
"width": 540,
"height": 420
}
},
"win": {
"target": {
"target": "nsis",
"arch": [
"x64",
"ia32"
]
},
"signingHashAlgorithms": [
"sha256"
],
"publisherName": [
"Acme, Inc.",
"Acme, Inc"
],
"sign": "./customSign.js",
},
"appImage": {
"artifactName": "MyApp.AppImage"
},
"linux": {
"target": [
"AppImage"
],
"category": "Development"
},
"directories": {
"app": "build/app",
"buildResources": "assets",
"output": "build/release"
},
"extraResources": [
"./assets/**"
],
"protocols": [
{
"name": "MyApp",
"schemes": [
"myapp"
]
}
]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment