Browse Source

Update eletron to v15, target node 16 to match.

master
Daniel Scalzi 10 months ago
parent
commit
a2168da999
No known key found for this signature in database GPG Key ID: D18EA3FB4B142A57
  1. 2
      .github/workflows/build.yml
  2. 2
      .nvmrc
  3. 2
      README.md
  4. 3
      index.js
  5. 8
      package-lock.json
  6. 4
      package.json

2
.github/workflows/build.yml

@ -17,7 +17,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/[email protected]
with:
node-version: 14
node-version: 16
- name: Build/release Electron app
uses: samuelmeuli/[email protected]

2
.nvmrc

@ -1 +1 @@
14
16

2
README.md

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

3
index.js

@ -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

@ -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"
}

4
package.json

@ -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"
},

Loading…
Cancel
Save