mirror of
https://github.com/purocean/yn.git
synced 2026-09-01 15:37:16 +08:00
21 lines
557 B
JavaScript
21 lines
557 B
JavaScript
require('dotenv').config();
|
|
const { notarize } = require('@electron/notarize');
|
|
|
|
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: 'yank.note',
|
|
appPath: `${appOutDir}/${appName}.app`,
|
|
appleId: process.env.APPLEID,
|
|
appleIdPassword: process.env.APPLEIDPASS,
|
|
teamId: process.env.TEAMID,
|
|
});
|
|
};
|