cannot launch notarized app
This commit is contained in:
@@ -2,7 +2,13 @@
|
||||
<!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.allow-unsigned-executable-memory</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.disable-library-validation</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.disable-executable-page-protection</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
@@ -1,10 +1,6 @@
|
||||
require('dotenv').config()
|
||||
const { notarize } = require('electron-notarize')
|
||||
|
||||
// Notarizeをしない場合、下のuseNotarizeをtrueからfalseに変更してください。
|
||||
const { notarize } = require('@electron/notarize')
|
||||
const useNotarize = true
|
||||
|
||||
|
||||
exports.default = async function notarizing(context) {
|
||||
const { electronPlatformName, appOutDir } = context
|
||||
if (electronPlatformName !== 'darwin' || !useNotarize) return
|
||||
@@ -20,4 +16,4 @@ exports.default = async function notarizing(context) {
|
||||
} catch (e) {
|
||||
throw console.log(e)
|
||||
}
|
||||
}
|
||||
}
|
23
app/build/notarize.old.js
Normal file
23
app/build/notarize.old.js
Normal file
@@ -0,0 +1,23 @@
|
||||
require('dotenv').config()
|
||||
const { notarize } = require('electron-notarize')
|
||||
|
||||
// Notarizeをしない場合、下のuseNotarizeをtrueからfalseに変更してください。
|
||||
const useNotarize = true
|
||||
|
||||
|
||||
exports.default = async function notarizing(context) {
|
||||
const { electronPlatformName, appOutDir } = context
|
||||
if (electronPlatformName !== 'darwin' || !useNotarize) return
|
||||
const appName = context.packager.appInfo.productFilename
|
||||
console.log(`start notarize: ${appOutDir}/${appName}.app`)
|
||||
try {
|
||||
return await notarize({
|
||||
appBundleId: 'top.thedesk',
|
||||
appPath: `${appOutDir}/${appName}.app`,
|
||||
appleId: process.env.APPLEID,
|
||||
appleIdPassword: process.env.APPLEIDPASS,
|
||||
})
|
||||
} catch (e) {
|
||||
throw console.log(e)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user