mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-05 03:38:55 +01:00
refs #2254 Notarize app in dmg build
This commit is contained in:
parent
226f4e1df8
commit
30ad8150a9
17
build/notarize.js
Normal file
17
build/notarize.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
const { notarize } = require('electron-notarize')
|
||||||
|
|
||||||
|
exports.default = async function notarizing(context) {
|
||||||
|
const { electronPlatformName, appOutDir } = context
|
||||||
|
if (electronPlatformName !== 'darwin') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const appName = context.packager.appInfo.productFilename
|
||||||
|
|
||||||
|
return await notarize({
|
||||||
|
appBundleId: 'org.whalebird.desktop',
|
||||||
|
appPath: `${appOutDir}/${appName}.app`,
|
||||||
|
appleId: process.env.APPLE_ID,
|
||||||
|
appleIdPassword: process.env.APPLE_PASSWORD
|
||||||
|
})
|
||||||
|
}
|
@ -56,7 +56,9 @@
|
|||||||
"dist/electron/**/*",
|
"dist/electron/**/*",
|
||||||
"build/icons/*"
|
"build/icons/*"
|
||||||
],
|
],
|
||||||
|
"afterSign": "build/notarize.js",
|
||||||
"dmg": {
|
"dmg": {
|
||||||
|
"sign": false,
|
||||||
"contents": [
|
"contents": [
|
||||||
{
|
{
|
||||||
"x": 410,
|
"x": 410,
|
||||||
@ -81,7 +83,11 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"category": "public.app-category.social-networking"
|
"category": "public.app-category.social-networking",
|
||||||
|
"entitlements": "plist/entitlements.mac.plist",
|
||||||
|
"entitlementsInherit": "plist/entitlements.mac.plist",
|
||||||
|
"hardenedRuntime" : true,
|
||||||
|
"gatekeeperAssess": false
|
||||||
},
|
},
|
||||||
"win": {
|
"win": {
|
||||||
"icon": "build/icons/icon.ico",
|
"icon": "build/icons/icon.ico",
|
||||||
|
8
plist/entitlements.mac.plist
Normal file
8
plist/entitlements.mac.plist
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?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-unsigned-executable-memory</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
Loading…
x
Reference in New Issue
Block a user