mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-24 00:23:36 +00:00
And enable the import/unambiguous ESLint rule as a check on our
partition between scripts and modules. After this commit, if you add
a new file and get this error:
✖ 1:1 This module could be parsed as a valid script. import/unambiguous
* For a module, add an `import` or `export` declaration to make the
file unambiguously a module (the empty `export {};` declaration
suffices).
* For a script, add the file to the xo overrides section of
package.json that marks it "sourceType": "script", and add a 'use
strict' declaration.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
24 lines
590 B
JavaScript
24 lines
590 B
JavaScript
'use strict';
|
|
const path = require('path');
|
|
const dotenv = require('dotenv');
|
|
|
|
dotenv.config({path: path.join(__dirname, '/../.env')});
|
|
|
|
const {notarize} = require('electron-notarize');
|
|
|
|
exports.default = async function (context) {
|
|
const {electronPlatformName, appOutDir} = context;
|
|
if (electronPlatformName !== 'darwin') {
|
|
return;
|
|
}
|
|
|
|
const appName = context.packager.appInfo.productFilename;
|
|
|
|
return notarize({
|
|
appBundleId: 'org.zulip.zulip-electron',
|
|
appPath: `${appOutDir}/${appName}.app`,
|
|
appleId: process.env.APPLE_ID,
|
|
appleIdPassword: process.env.APPLE_ID_PASS
|
|
});
|
|
};
|