Skip to content

Commit

Permalink
[add] support code signing on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
dongkeren committed Jul 11, 2023
1 parent e2bd913 commit 42eb31a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion framework/app/lib/electron/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,17 @@ const run = (distDir) => {
),
},
};
const notarizeConfig = process.env.CSC_LINK ? {
afterSign: "electron-builder-notarize",
mac: {
...baseConfig.mac,
"hardenedRuntime": true,
"entitlements": "./node_modules/electron-builder-notarize/entitlements.mac.inherit.plist",
}
} : {};
process.chdir(cwd);
return electronBuilder.build({
config: { ...baseConfig, ...craftConfig, ...appConfig },
config: { ...baseConfig, ...craftConfig, ...appConfig, ...notarizeConfig },
});
};

Expand Down

0 comments on commit 42eb31a

Please sign in to comment.