1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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 2020-11-13 15:14:26 -05:00
parent 14425fb14e
commit 6664215e36
4 changed files with 1 additions and 30 deletions

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,
});
};

View File

@ -338,7 +338,6 @@
"dompurify": "^2.0.11",
"electron": "^9.1.2",
"electron-builder": "^22.7.0",
"electron-notarize": "^0.3.0",
"eslint": "^7.7.0",
"file-loader": "^6.0.0",
"flex.box": "^3.4.4",

View File

@ -18,7 +18,7 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipLibCheck": true,
"allowJs": true,
"allowJs": false,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"traceResolution": false,

View File

@ -5514,14 +5514,6 @@ electron-chromedriver@^9.0.0:
"@electron/get" "^1.12.2"
extract-zip "^2.0.0"
electron-notarize@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/electron-notarize/-/electron-notarize-0.3.0.tgz#b93c606306eac558b250c78ff95273ddb9fedf0a"
integrity sha512-tuDw8H0gcDOalNLv6RM2CwGvUXU60MPGZRDEmd0ppX+yP5XqL8Ec2DuXyz9J7WQSA3aRCfzIgH8C5CAivDYWMw==
dependencies:
debug "^4.1.1"
fs-extra "^8.1.0"
electron-publish@22.7.0:
version "22.7.0"
resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-22.7.0.tgz#d92ba7c4007c9ac1dd070593e48028184fb2dc19"