Update eletron to v15, target node 16 to match.

pull/199/head
Daniel Scalzi 2021-10-14 23:55:31 -04:00
parent 430e840514
commit a2168da999
No known key found for this signature in database
GPG Key ID: D18EA3FB4B142A57
6 changed files with 9 additions and 12 deletions

View File

@ -17,7 +17,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1

2
.nvmrc
View File

@ -1 +1 @@
14
16

View File

@ -83,7 +83,7 @@ This section details the setup of a basic developmentment environment.
**System Requirements**
* [Node.js][nodejs] v14
* [Node.js][nodejs] v16
---

View File

@ -88,9 +88,6 @@ ipcMain.on('distributionIndexDone', (event, res) => {
// https://electronjs.org/docs/tutorial/offscreen-rendering
app.disableHardwareAcceleration()
// https://github.com/electron/electron/issues/18397
app.allowRendererProcessReuse = true
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win

8
package-lock.json generated
View File

@ -1282,12 +1282,12 @@
}
},
"electron": {
"version": "13.5.2",
"resolved": "https://registry.npmjs.org/electron/-/electron-13.5.2.tgz",
"integrity": "sha512-CPakwDpy5m8dL0383F5uJboQcVtn9bT/+6/wdDKo8LuTUO9aER1TF41v7feZgZW2c+UwoGPWa814ElSQ3qta2A==",
"version": "15.2.0",
"resolved": "https://registry.npmjs.org/electron/-/electron-15.2.0.tgz",
"integrity": "sha512-kg0JdlsVbJgD/hO/A7o9VH8U44pQWkIsyt/sALxH6g8CiHQxMujLn2JfB2gyUfHXPT7m8vD4Z+CurS2KodEsWw==",
"dev": true,
"requires": {
"@electron/get": "^1.0.1",
"@electron/get": "^1.13.0",
"@types/node": "^14.6.2",
"extract-zip": "^1.0.3"
}

View File

@ -20,7 +20,7 @@
"lint": "eslint --config .eslintrc.json ."
},
"engines": {
"node": "14.x.x"
"node": "16.x.x"
},
"dependencies": {
"@electron/remote": "^2.0.1",
@ -40,7 +40,7 @@
"winreg": "^1.2.4"
},
"devDependencies": {
"electron": "^13.5.2",
"electron": "^15.2.0",
"electron-builder": "^22.13.1",
"eslint": "^8.0.1"
},