4
0
mirror of https://github.com/AltarikMC/Launcher synced 2024-11-25 06:49:51 +01:00

do somes changes to make app run with new versions of electron

This commit is contained in:
Quentin Legot 2021-01-31 18:14:39 +01:00 committed by Quentin Legot
parent 117fddccd7
commit 931fa8d3ce
4 changed files with 29 additions and 2 deletions

View File

@ -4,7 +4,7 @@ module.exports = {
packageName: "Launcher",
name: "Launcher",
productName: "Launcher",
icon: path.resolve(__dirname, 'app.ico')
icon: path.resolve(__dirname, 'icon.png')
},
makers: [
{

View File

@ -1,6 +1,9 @@
const { app, BrowserWindow, Menu, ipcMain, Notification } = require('electron')
const path = require('path')
if (handleSquirrelEvent()) return;
if (require('electron-squirrel-startup')) {
handleSquirrelEvent()
app.quit()
}
const { Client, Authenticator } = require('minecraft-launcher-core')
const appdata = process.env.APPDATA || (process.platform == 'darwin' ? process.env.HOME + '/Library/Preferences' : process.env.HOME + "/.local/share")

23
package-lock.json generated
View File

@ -1735,6 +1735,29 @@
}
}
},
"electron-squirrel-startup": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/electron-squirrel-startup/-/electron-squirrel-startup-1.0.0.tgz",
"integrity": "sha1-GbTlWTP6Dvj1VnhLnGYPdyVGoLg=",
"requires": {
"debug": "^2.2.0"
},
"dependencies": {
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"requires": {
"ms": "2.0.0"
}
},
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
}
}
},
"electron-winstaller": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-4.0.1.tgz",

View File

@ -18,6 +18,7 @@
"electron": "^11.1.1"
},
"dependencies": {
"electron-squirrel-startup": "^1.0.0",
"minecraft-launcher-core": "^3.16.1"
},
"config": {