Remove unused build/notarize.js

- File is not referenced anywhere in the repo

- Allows us to set "allowJs" to `false` in the `tsconfig.json` which
  reduces the random errors when opening that file in vscode

- Also remove the electron-notarize package as no longer used anywhere

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2020-11-13 15:14:26 -05:00
1 parent 14425fb14e
commit 6664215e36
4 files changed
+1 -30

No files matched your search

-20
View File
@@ -1,20 +0,0 @@
const { notarize } = require('electron-notarize')
exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== 'darwin') {
return;
}
if (!process.env.APPLEID || !process.env.APPLEIDPASS) {
return;
}
const appName = context.packager.appInfo.productFilename;
return await notarize({
appBundleId: 'io.kontena.lens-app',
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
});
};