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

37 lines
1.2 KiB

11 months ago
const { notarize } = require('@electron/notarize');
const fs = require('fs');
11 months ago
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;
const files = fs.readdirSync(appOutDir, 'utf8')
console.log(files);
11 months ago
11 months ago
console.log({
appBundleId: 'org.ethereum.remix-ide', // Your app's bundle ID
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
teamId: process.env.APPLE_TEAM_ID, // Your Apple Developer team ID (optional)
})
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
};