remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/apps/remixdesktop/notarize.js

26 lines
772 B

11 months ago
const { notarize } = require('@electron/notarize');
exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context; // Provided by electron-builder
console.log('NOTARIZING');
if (electronPlatformName !== 'darwin') {
return;
}
const appName = context.packager.appInfo.productFilename;
11 months ago
console.log(appName);
11 months ago
const r = await notarize({
11 months ago
appBundleId: 'org.ethereum.remix-ide', // Your app's bundle ID
11 months ago
appPath: `${appOutDir}/${appName}.app`, // Path to your .app
appleId: process.env.APPLE_ID, // Your Apple ID
appleIdPassword: process.env.APPLE_ID_PASSWORD, // App-specific password
11 months ago
teamId: process.env.APPLE_TEAM_ID, // Your Apple Developer team ID (optional)
11 months ago
});
11 months ago
console.log(r);
11 months ago
};