mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 18:02:55 +00:00
22 lines
629 B
JavaScript
Vendored
22 lines
629 B
JavaScript
Vendored
require('dotenv').config();
|
|
const { notarize } = require('electron-notarize');
|
|
const config = require('./package.json');
|
|
const {APPLEID, APPLEIDPASS} = process.env;
|
|
|
|
exports.default = async function notarizing(context) {
|
|
const { electronPlatformName, appOutDir } = context;
|
|
const appName = context.packager.appInfo.productFilename;
|
|
|
|
if (electronPlatformName !== 'darwin') {
|
|
return;
|
|
}
|
|
|
|
return await notarize({
|
|
tool: "notarytool",
|
|
appBundleId: config.build.appId,
|
|
appPath: `${appOutDir}/${appName}.app`,
|
|
appleId: APPLEID,
|
|
appleIdPassword: APPLEIDPASS,
|
|
});
|
|
};
|