Skip to content

Commit 315fe01

Browse files
committed
Add identity and notorizing the package
1 parent 3315a7a commit 315fe01

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require('dotenv').config();
2+
const { notarize } = require('electron-notarize');
3+
4+
exports.default = async function notarizing(context) {
5+
const { electronPlatformName, appOutDir } = context;
6+
if (electronPlatformName !== 'darwin') {
7+
return;
8+
}
9+
10+
const appName = context.packager.appInfo.productFilename;
11+
12+
return await notarize({
13+
appBundleId: 'com.flowtestai.app',
14+
appPath: `${appOutDir}/${appName}.app`,
15+
appleId: process.env.APPLE_ID,
16+
appleIdPassword: process.env.APPLE_ID_PASSWORD,
17+
teamId: process.env.TEAM_ID,
18+
});
19+
};

packages/flowtest-electron/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"homepage": "https://github.com/FlowTestAI/FlowTest/tree/main",
55
"description": "OpenSource IDE for designing API powered flows",
66
"main": "electron-main.js",
7+
"bugs": {
8+
"url": "https://github.com/FlowTestAI/FlowTest/issues"
9+
},
710
"scripts": {
811
"start": "electron .",
912
"test": "jest",
@@ -13,6 +16,7 @@
1316
"author": "Sajal Jain <jsajal1993@gmail.com>",
1417
"license": "MIT",
1518
"devDependencies": {
19+
"@electron/notarize": "^2.3.0",
1620
"electron": "^29.0.0",
1721
"electron-builder": "^24.13.3",
1822
"jest": "^29.7.0"
@@ -41,11 +45,13 @@
4145
"files": [
4246
"**/*"
4347
],
48+
"afterSign": "notarize.js",
4449
"win": {
4550
"target": "nsis"
4651
},
4752
"mac": {
48-
"target": "dmg"
53+
"target": "dmg",
54+
"identity": "Sajal Jain (7R825R8PU5)"
4955
},
5056
"linux": {
5157
"target": [

0 commit comments

Comments
 (0)