mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-24 06:33:52 +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/**/*",
|
||||
"build/icons/*"
|
||||
],
|
||||
"afterSign": "build/notarize.js",
|
||||
"dmg": {
|
||||
"sign": false,
|
||||
"contents": [
|
||||
{
|
||||
"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": {
|
||||
"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…
Reference in New Issue
Block a user