Add Mac Signing

This commit is contained in:
Patrick Fic
2025-02-19 16:04:57 -08:00
parent 819066120b
commit c3d812603c
3 changed files with 47 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
<?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>
<!-- Allows Just-In-Time compilation required by V8 JavaScript engine in Electron -->
<key>com.apple.security.cs.allow-jit</key>
<true/>
<!-- This is needed for the V8 JavaScript engine to function properly -->
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<!-- Allows network connections -->
<key>com.apple.security.network.client</key>
<true/>
<!-- Uncomment to allow read and write access to files explicitly selected by the user through system dialogs -->
<!-- <key>com.apple.security.files.user-selected.read-write</key>
<true/> -->
<!-- Uncomment to allow read and write access to the user's Downloads directory -->
<!-- <key>com.apple.security.files.downloads.read-write</key>
<true/> -->
</dict>
</plist>

BIN
certificate.p12 Normal file

Binary file not shown.

View File

@@ -59,6 +59,7 @@
"pack": "electron-builder --dir",
"dist": "npm run build && electron-builder",
"distp": "npm run build && electron-builder --publish always",
"distnopublish": "npm run build && electron-builder --publish never",
"distpnb": "lectron-builder --publish always",
"postinstall": "electron-builder install-app-deps",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org imex --project rps ./build && sentry-cli sourcemaps upload --org imex --project rps ./build"
@@ -113,15 +114,32 @@
"target": "nsis",
"icon": "src/icons/win/icon.ico"
},
"mac": {
"category": "public.app-category.business",
"target": [
{
"target": "default",
"arch": [
"universal"
]
}
],
"artifactName": "${productName}.${ext}",
"type": "distribution",
"hardenedRuntime": true,
"entitlements": "assets/entitlements.mac.plist",
"entitlementsInherit": "assets/entitlements.mac.plist",
"gatekeeperAssess": false
},
"dmg": {
"contents": [
{
"x": 110,
"y": 150
"x": 130,
"y": 220
},
{
"x": 240,
"y": 150,
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}