commit
83d1c94f77
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<!-- Mac distribution -->
|
||||||
|
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
const { notarize } = require('electron-notarize');
|
||||||
|
|
||||||
|
/*
|
||||||
|
Pre-requisites: https://github.com/electron/electron-notarize#prerequisites
|
||||||
|
1. Generate an app specific password
|
||||||
|
2. Export SIGNING_APPLE_ID, SIGNING_APP_PASSWORD, SIGNING_TEAM_ID environment variables
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
Notarizing: https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/
|
||||||
|
*/
|
||||||
|
|
||||||
|
exports.default = async function notarizing(context) {
|
||||||
|
const { electronPlatformName, appOutDir } = context;
|
||||||
|
if (electronPlatformName !== 'darwin') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const appName = context.packager.appInfo.productFilename;
|
||||||
|
|
||||||
|
return notarize({
|
||||||
|
appBundleId: 'com.loki-project.messenger-desktop',
|
||||||
|
appPath: `${appOutDir}/${appName}.app`,
|
||||||
|
appleId: process.env.SIGNING_APPLE_ID,
|
||||||
|
appleIdPassword: process.env.SIGNING_APP_PASSWORD,
|
||||||
|
ascProvider: process.env.SIGNING_TEAM_ID,
|
||||||
|
});
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue