mirror of
https://github.com/AltarikMC/Launcher
synced 2024-11-22 06:19:50 +01:00
theorically fix updater
This commit is contained in:
parent
5772d3059e
commit
0ea573f918
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "altarik-launcher",
|
||||
"version": "0.1.1-SNAPSHOT",
|
||||
"version": "0.2.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
12
package.json
12
package.json
@ -1,9 +1,12 @@
|
||||
{
|
||||
"name": "altarik-launcher",
|
||||
"version": "0.2.0-SNAPSHOT",
|
||||
"version": "0.2.0",
|
||||
"description": "Altarik Launcher",
|
||||
"main": "src/server/main.js",
|
||||
"repository": "AltarikMC/Launcher",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/AltarikMC/Launcher.git"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "electron-forge start",
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
@ -11,7 +14,10 @@
|
||||
"make": "electron-forge make"
|
||||
},
|
||||
"keywords": [],
|
||||
"authors": ["Topeka_", "Altarik"],
|
||||
"authors": [
|
||||
"Topeka_",
|
||||
"Altarik"
|
||||
],
|
||||
"license": "BSD-3-Clause",
|
||||
"devDependencies": {
|
||||
"@electron-forge/cli": "^6.0.0-beta.54",
|
||||
|
@ -3,9 +3,11 @@ const { join } = require('path')
|
||||
if (require('electron-squirrel-startup')) {
|
||||
require("./install.js").handleSquirrelEvent(app)
|
||||
app.quit()
|
||||
return;
|
||||
}
|
||||
// don't work
|
||||
//require('./updater.js').configUpdater(app, autoUpdater, dialog)
|
||||
require('./updater.js').configUpdater(app, autoUpdater, dialog)
|
||||
|
||||
|
||||
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")
|
||||
|
@ -38,6 +38,7 @@ function configUpdater(app, autoUpdater, dialog) {
|
||||
autoUpdater.on('error', message => {
|
||||
console.error('There was a problem updating the application')
|
||||
console.error(message)
|
||||
/*
|
||||
showNotification(feed)
|
||||
const dialogOpts = {
|
||||
type: 'info',
|
||||
@ -47,11 +48,12 @@ function configUpdater(app, autoUpdater, dialog) {
|
||||
detail: message
|
||||
}
|
||||
|
||||
dialog.showMessageBox(dialogOpts)
|
||||
dialog.showMessageBox(dialogOpts) */
|
||||
})
|
||||
|
||||
autoUpdater.on('update-available', () => {
|
||||
showNotification("Altarik launcher", "downloading update")
|
||||
autoUpdater.down
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user