mirror of
https://github.com/AltarikMC/Launcher
synced 2024-11-25 06:49:51 +01:00
Dump to 1.2.1 and fix updater
This commit is contained in:
parent
8f33da506a
commit
0f0504e84f
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "altarik-launcher",
|
"name": "altarik-launcher",
|
||||||
"author": "Altarik",
|
"author": "Altarik",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"description": "Altarik Launcher",
|
"description": "Altarik Launcher",
|
||||||
"main": "src/server/main.js",
|
"main": "src/server/main.js",
|
||||||
"homepage": "https://altarik.fr/",
|
"homepage": "https://altarik.fr/",
|
||||||
|
@ -2,8 +2,8 @@ const { app, BrowserWindow, Menu, ipcMain, autoUpdater, dialog } = require('elec
|
|||||||
const logger = require('electron-log')
|
const logger = require('electron-log')
|
||||||
const { join } = require('path')
|
const { join } = require('path')
|
||||||
const updater = require('./updater.js')
|
const updater = require('./updater.js')
|
||||||
let updaterInstance = null
|
let updaterInstance = new updater.Updater(app, win, autoUpdater, dialog, logger, showNotification)
|
||||||
|
updaterInstance.configUpdater()
|
||||||
|
|
||||||
if (require('electron-squirrel-startup')) {
|
if (require('electron-squirrel-startup')) {
|
||||||
require("./install.js").handleSquirrelEvent(app)
|
require("./install.js").handleSquirrelEvent(app)
|
||||||
@ -29,10 +29,7 @@ function createWindow () {
|
|||||||
frame: false
|
frame: false
|
||||||
})
|
})
|
||||||
//Menu.setApplicationMenu(null)
|
//Menu.setApplicationMenu(null)
|
||||||
win.loadFile('src/client/checkingUpdate.html').then(() => {
|
win.loadFile('src/client/checkingUpdate.html')
|
||||||
updaterInstance = new updater.Updater(app, win, autoUpdater, dialog, logger, showNotification)
|
|
||||||
updaterInstance.configUpdater()
|
|
||||||
})
|
|
||||||
win.on("close", () => {
|
win.on("close", () => {
|
||||||
app.quit()
|
app.quit()
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user