drawio-desktop/build/notarize.mjs
2025-03-26 18:50:33 -04:00

20 lines
566 B
JavaScript

import 'dotenv/config';
import { notarize } from '@electron/notarize';
export 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: 'com.jgraph.drawio.desktop',
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
teamId: process.env.APPLE_TEAM_ID
});
};