mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-10 10:00:48 +09:00
22 lines
557 B
JavaScript
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,
|
|
});
|
|
};
|