4
0
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:
Quentin Legot 2022-08-20 11:31:49 +02:00
parent 8f33da506a
commit 0f0504e84f
2 changed files with 4 additions and 7 deletions

View File

@ -1,7 +1,7 @@
{
"name": "altarik-launcher",
"author": "Altarik",
"version": "1.2.0",
"version": "1.2.1",
"description": "Altarik Launcher",
"main": "src/server/main.js",
"homepage": "https://altarik.fr/",

View File

@ -2,8 +2,8 @@ const { app, BrowserWindow, Menu, ipcMain, autoUpdater, dialog } = require('elec
const logger = require('electron-log')
const { join } = require('path')
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')) {
require("./install.js").handleSquirrelEvent(app)
@ -29,10 +29,7 @@ function createWindow () {
frame: false
})
//Menu.setApplicationMenu(null)
win.loadFile('src/client/checkingUpdate.html').then(() => {
updaterInstance = new updater.Updater(app, win, autoUpdater, dialog, logger, showNotification)
updaterInstance.configUpdater()
})
win.loadFile('src/client/checkingUpdate.html')
win.on("close", () => {
app.quit()
})