1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

Bump Electron to v14 (#1088)

This commit is contained in:
Oscar Hinton
2021-09-28 16:51:53 +02:00
committed by GitHub
parent facedab33c
commit e985018862
5 changed files with 2288 additions and 1792 deletions

View File

@@ -1,4 +1,6 @@
require('dotenv').config();
const path = require('path');
const fse = require('fs-extra');
const { notarize } = require('electron-notarize');
exports.default = run;
@@ -12,6 +14,16 @@ async function run(context) {
const macBuild = context.electronPlatformName === 'darwin';
if (macBuild) {
// Copy Safari plugin to work-around https://github.com/electron-userland/electron-builder/issues/5552
const plugIn = path.join(__dirname, '../PlugIns');
if (fse.existsSync(plugIn)) {
fse.mkdirSync(path.join(appPath, 'Contents/PlugIns'));
fse.copySync(path.join(plugIn, 'safari.appex'), path.join(appPath, 'Contents/PlugIns/safari.appex'));
// Resign to sign safari extension
await context.packager.signApp(context, true);
}
console.log('### Notarizing ' + appPath);
const appleId = process.env.APPLE_ID_USERNAME || process.env.APPLEID;
const appleIdPassword = process.env.APPLE_ID_PASSWORD || `@keychain:AC_PASSWORD`;