Electron 12, Node 14, dependency upgrade.

This commit is contained in:
Daniel Scalzi 2021-03-07 11:17:23 -05:00
parent 2743585b12
commit cb8d1bb00f
No known key found for this signature in database
GPG Key ID: D18EA3FB4B142A57
6 changed files with 640 additions and 306 deletions

View File

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

View File

@ -9,7 +9,7 @@ const sysRoot = process.env.APPDATA || (process.platform == 'darwin' ? process.e
const dataPath = path.join(sysRoot, '.helioslauncher')
// Forked processes do not have access to electron, so we have this workaround.
const launcherDir = process.env.CONFIG_DIRECT_PATH || require('electron').remote.app.getPath('userData')
const launcherDir = process.env.CONFIG_DIRECT_PATH || require('@electron/remote').app.getPath('userData')
/**
* Retrieve the absolute path of the launcher directory.

View File

@ -5,10 +5,11 @@
* modules, excluding dependencies.
*/
// Requirements
const $ = require('jquery')
const {ipcRenderer, remote, shell, webFrame} = require('electron')
const isDev = require('./assets/js/isdev')
const LoggerUtil = require('./assets/js/loggerutil')
const $ = require('jquery')
const {ipcRenderer, shell, webFrame} = require('electron')
const remote = require('@electron/remote')
const isDev = require('./assets/js/isdev')
const LoggerUtil = require('./assets/js/loggerutil')
const loggerUICore = LoggerUtil('%c[UICore]', 'color: #000668; font-weight: bold')
const loggerAutoUpdater = LoggerUtil('%c[AutoUpdater]', 'color: #000668; font-weight: bold')

View File

@ -1,3 +1,5 @@
require('@electron/remote/main').initialize()
// Requirements
const { app, BrowserWindow, ipcMain, Menu } = require('electron')
const autoUpdater = require('electron-updater').autoUpdater

914
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,15 +25,16 @@
"node": "12.x.x"
},
"dependencies": {
"adm-zip": "^0.5.2",
"@electron/remote": "^1.0.4",
"adm-zip": "^0.5.3",
"async": "^3.2.0",
"discord-rpc": "^3.1.4",
"ejs": "^3.1.5",
"discord-rpc": "^3.2.0",
"ejs": "^3.1.6",
"ejs-electron": "^2.1.1",
"electron-updater": "^4.3.5",
"electron-updater": "^4.3.8",
"fs-extra": "^9.1.0",
"github-syntax-dark": "^0.5.0",
"jquery": "^3.5.1",
"jquery": "^3.6.0",
"request": "^2.88.2",
"semver": "^7.3.4",
"tar-fs": "^2.1.1",
@ -41,9 +42,9 @@
},
"devDependencies": {
"cross-env": "^7.0.3",
"electron": "^11.2.1",
"electron-builder": "^22.9.1",
"eslint": "^7.19.0"
"electron": "^12.0.0",
"electron-builder": "^22.10.5",
"eslint": "^7.21.0"
},
"repository": {
"type": "git",