electron-blink1-toy
Version:
Play with Electron and node-hid
20 lines (16 loc) • 610 B
JavaScript
//require('dotenv').config(); // we'll set env vars by hand
const { notarize } = require('electron-notarize');
exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== 'darwin') {
return;
}
const appName = context.packager.appInfo.productFilename;
return await notarize({
appBundleId: 'com.todbot.electron-blink1-toy', // FIXME
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
ascProvider: process.env.TEAM_SHORT_NAME,
});
};