mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
Update system
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
import { app, BrowserWindow, nativeImage } from 'electron';
|
||||
import * as path from 'path';
|
||||
import { format as formatUrl } from 'url';
|
||||
import { autoUpdater } from 'electron-updater';
|
||||
|
||||
import ipcHandlers from './ipc-handlers';
|
||||
|
||||
@ -68,10 +67,6 @@ function createMainWindow () {
|
||||
// Initialize ipcHandlers
|
||||
ipcHandlers();
|
||||
|
||||
autoUpdater.checkForUpdatesAndNotify();
|
||||
autoUpdater.logger = require('electron-log');
|
||||
autoUpdater.logger.transports.file.level = 'info';
|
||||
|
||||
return window;
|
||||
};
|
||||
|
||||
@ -92,21 +87,3 @@ app.on('activate', () => {
|
||||
app.on('ready', () => {
|
||||
mainWindow = createMainWindow();
|
||||
});
|
||||
|
||||
// auto-updater events
|
||||
autoUpdater.on('checking-for-update', () => {
|
||||
});
|
||||
|
||||
autoUpdater.on('update-available', () => {
|
||||
mainWindow.webContents.send('update_available');
|
||||
});
|
||||
|
||||
autoUpdater.on('update-not-available', () => {
|
||||
});
|
||||
|
||||
autoUpdater.on('download-progress', (progressObj) => {
|
||||
});
|
||||
|
||||
autoUpdater.on('update-downloaded', () => {
|
||||
mainWindow.webContents.send('update_downloaded');
|
||||
});
|
||||
|
Reference in New Issue
Block a user