Verified Commit 758a51a1 authored by azubieta's avatar azubieta
Browse files

Revert "use electron updater"

This reverts commit 4f51f5a3.
parent ed67d39b
......@@ -5,11 +5,6 @@ const {app, BrowserWindow, ipcMain} = require('electron');
const ElectronStore = require('electron-store');
const request = require('request');
const {autoUpdater} = require("electron-updater")
autoUpdater.logger = require("electron-log")
autoUpdater.logger.transports.file.level = "info"
// Set configs dir
app.setPath("userData", app.getPath("appData") + "/OCS-Store")
......@@ -97,7 +92,7 @@ function createWindow() {
mainWindow.loadURL(indexFileUrl);
mainWindow.maximize();
mainWindow.on('close', () => {
const appConfigStore = new ElectronStore({name: appConfigStoreStorage});
appConfigStore.set('windowBounds', mainWindow.getBounds());
......@@ -166,7 +161,6 @@ function removePreviewpic(itemKey) {
app.on('ready', async () => {
if (await startOcsManager()) {
createWindow();
autoUpdater.checkForUpdatesAndNotify()
} else {
app.quit();
}
......
......@@ -18,7 +18,6 @@
"dependencies": {
"electron-store": "2.*.*",
"electron-updater": "^4.1.2",
"electron-log": "^3.0.7",
"esm": "3.*.*",
"lit-html": "1.*.*",
"request": "2.*.*"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment