mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
27 lines
668 B
JavaScript
27 lines
668 B
JavaScript
const { notarize } = require('@electron/notarize');
|
|
|
|
require('dotenv').config();
|
|
|
|
exports.default = async function notarizing (context) {
|
|
if (process.env.ELECTRON_SKIP_NOTARIZE) {
|
|
return;
|
|
};
|
|
|
|
const { electronPlatformName, appOutDir } = context;
|
|
|
|
if (electronPlatformName == 'darwin') {
|
|
const appName = context.packager.appInfo.productFilename;
|
|
|
|
return await notarize({
|
|
tool: 'notarytool',
|
|
appPath: `${appOutDir}/${appName}.app`,
|
|
appleId: process.env.APPLEID,
|
|
appleIdPassword: process.env.APPLEIDPASS,
|
|
teamId: process.env.APPLETEAM,
|
|
//appBundleId: 'com.anytype.anytype',
|
|
//ascProvider: process.env.APPLETEAM,
|
|
});
|
|
};
|
|
|
|
return null;
|
|
};
|