返回 AiToEarn
notarize.cjs
1 /*
2 * @Author: nevin
3 * @Date: 2025-04-17 19:22:11
4 * @LastEditTime: 2025-04-29 16:02:02
5 * @LastEditors: nevin
6 * @Description:
7 */
8 // 修改后(CommonJS)
9 const { notarize } = require('@electron/notarize');
10
11 exports.default = async function notarizing(context) {
12 // console.log('--2222---', context);
13
14 const { productFilename, version } = context.packager.appInfo;
15 const { electronPlatformName, outDir } = context;
16 if (electronPlatformName !== 'darwin') return;
17
18 let appPath = `${outDir}/${productFilename}-${version}-arm64.dmg`;
19 console.log('notarizing-------', appPath);
20
21 // return await notarize({
22
23 // });
24 };
25
25 lines Plain Text