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:
parent
c13118eaa4
commit
d1a2aaf3b9
@ -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: [
|
||||
{
|
||||
|
5
main.js
5
main.js
@ -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
23
package-lock.json
generated
@ -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",
|
||||
|
@ -18,6 +18,7 @@
|
||||
"electron": "^11.1.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"electron-squirrel-startup": "^1.0.0",
|
||||
"minecraft-launcher-core": "^3.16.1"
|
||||
},
|
||||
"config": {
|
||||
|
Loading…
Reference in New Issue
Block a user