1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-10 10:00:48 +09:00
anytype-ts/electron/notarize.js
Andrew Simachev 4ff20f48dc refactoring
2020-03-08 13:36:39 +03:00

22 lines
557 B
JavaScript

require('dotenv').config();
const { notarize } = require('electron-notarize');
exports.default = async function notarizing(context) {
if (process.env.ELECTRON_SKIP_NOTARIZE) {
return;
};
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== 'darwin') {
return;
};
const appName = context.packager.appInfo.productFilename;
return await notarize({
appBundleId: 'com.anytype.anytype2',
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
});
};