The swiss army knife of lossless video/audio editing
upgrade electron
Mikael Finstade19d54dd887f
diff --git a/package.json b/package.jsonindex 6338bd30..402d8b6b 100644--- a/package.json+++ b/package.json@@ -43,7 +43,7 @@"cross-env": "^7.0.3","csv-parse": "^4.15.3","csv-stringify": "^5.6.2",- "electron": "8",+ "electron": "^12.0.2","electron-builder": "^22.9.1","electron-builder-notarize": "^1.1.2","electron-devtools-installer": "^3.1.1",diff --git a/public/electron.js b/public/electron.jsindex be1f4a0f..b086ae34 100644--- a/public/electron.js+++ b/public/electron.js@@ -37,6 +37,8 @@ function createWindow() {mainWindow = new BrowserWindow({darkTheme: true,webPreferences: {+ enableRemoteModule: true,+ contextIsolation: false,nodeIntegration: true,// https://github.com/electron/electron/issues/5107webSecurity: !isDev,@@ -47,14 +49,6 @@ function createWindow() {// Need to useloadFile for special characters https://github.com/mifi/lossless-cut/issues/40else mainWindow.loadFile('build/index.html');- if (isDev) {- const { default: installExtension, REACT_DEVELOPER_TOOLS } = require('electron-devtools-installer'); // eslint-disable-line global-require,import/no-extraneous-dependencies-- installExtension(REACT_DEVELOPER_TOOLS)- .then(name => console.log(`Added Extension: ${name}`))- .catch(err => console.log('An error occurred: ', err));- }-// Open the DevTools.// mainWindow.webContents.openDevTools()@@ -92,6 +86,15 @@ function updateMenu() {app.on('ready', async () => {await configStore.init();+ if (isDev) {+ const { default: installExtension, REACT_DEVELOPER_TOOLS } = require('electron-devtools-installer'); // eslint-disable-line global-require,import/no-extraneous-dependencies++ installExtension(REACT_DEVELOPER_TOOLS)+ .then(name => console.log(`Added Extension: ${name}`))+ .catch(err => console.log('An error occurred: ', err));+ }++createWindow();updateMenu();diff --git a/yarn.lock b/yarn.lockindex 05d68e1d..8ed760db 100644--- a/yarn.lock+++ b/yarn.lock@@ -2078,7 +2078,7 @@resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==-"@types/node@*":+"@types/node@*", "@types/node@^14.6.2":version "14.14.37"resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.37.tgz#a3dd8da4eb84a996c36e331df98d82abd76b516e"integrity sha512-XYmBiy+ohOR4Lh5jE379fV2IU+6Jn4g5qASinhitfyO71b/sCo6MKsMLF5tc7Zf2CE8hViVQyYSobJNke8OvUw==@@ -2088,11 +2088,6 @@resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.48.tgz#726e7f25d00bf58d79c8f00dd586dd9a10d06a4f"integrity sha512-Agl6xbYP6FOMDeAsr3QVZ+g7Yzg0uhPHWx0j5g4LFdUBHVtqtU+gH660k/lCEe506jJLOGbEzsnqPDTZGJQLag==-"@types/node@^12.0.12":- version "12.12.37"- resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.37.tgz#cb4782d847f801fa58316da5b4801ca3a59ae790"- integrity sha512-4mXKoDptrXAwZErQHrLzpe0FN/0Wmf5JRniSVIdwUrtDf9wnmEV1teCNLBo/TwuXhkK/bVegoEn/wmb+x0AuPg==-"@types/normalize-package-data@^2.4.0":version "2.4.0"resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"@@ -5332,13 +5327,13 @@ electron-unhandled@^3.0.2:ensure-error "^2.0.0"lodash.debounce "^4.0.8"-electron@8:- version "8.5.5"- resolved "https://registry.yarnpkg.com/electron/-/electron-8.5.5.tgz#17b12bd70139c0099f750fc5de0d480bf03acb96"- integrity sha512-e355H+tRDial0m+X2v+l+0SnaATAPw4sNjv9qmdk/6MJz/glteVJwVJEnxTjPfEELIJSChrBWDBVpjdDvoBF4Q==+electron@^12.0.2:+ version "12.0.2"+ resolved "https://registry.yarnpkg.com/electron/-/electron-12.0.2.tgz#d92be205f1937627bd6718aad44ac161382b4c2d"+ integrity sha512-14luh9mGzfL4e0sncyy0+kW37IU7Y0Y1tvI97FDRSW0ZBQxi5cmAwSs5dmPmNBFBIGtzkaGaEB01j9RjZuCmow==dependencies:"@electron/get" "^1.0.1"- "@types/node" "^12.0.12"+ "@types/node" "^14.6.2"extract-zip "^1.0.3"elliptic@^6.0.0: