2024-05-08 13:16:23 +02:00
|
|
|
require('dotenv').config()
|
|
|
|
const { notarize } = require('@electron/notarize')
|
2021-12-29 12:11:26 +01:00
|
|
|
|
|
|
|
exports.default = async function notarizing(context) {
|
2024-05-08 13:16:23 +02:00
|
|
|
const { electronPlatformName, appOutDir } = context
|
2021-12-29 12:11:26 +01:00
|
|
|
|
2024-05-08 13:16:23 +02:00
|
|
|
if (electronPlatformName !== 'darwin') {
|
|
|
|
return
|
|
|
|
}
|
2021-12-29 12:11:26 +01:00
|
|
|
|
2024-05-08 13:16:23 +02:00
|
|
|
const appName = context.packager.appInfo.productFilename
|
|
|
|
|
|
|
|
return await notarize({
|
|
|
|
appBundleId: 'org.qortal.QortalUI',
|
|
|
|
appPath: `${appOutDir}/${appName}.app`,
|
|
|
|
tool: "notarytool",
|
|
|
|
teamId: process.env.APPLETEAMID,
|
|
|
|
appleId: process.env.APPLEID,
|
|
|
|
appleIdPassword: process.env.APPLEIDPASS
|
|
|
|
})
|
|
|
|
}
|