Verified Commit 11dcd61a authored by azubieta's avatar azubieta
Browse files

Merge branch 'publis_zsync' of www.opencode.net:azubieta/pling-store into publish_zsync

parents d342569a 97481afd
......@@ -5,6 +5,13 @@ 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"
autoUpdater.setFeedURL({"provider": "generic", "url": "https://www.opencode.net/azubieta/pling-store/-/jobs/artifacts/master/raw/build_pling-store/pling-store-master-x86_64.AppImage.zsync?job=appimage"})
// Set configs dir
app.setPath("userData", app.getPath("appData") + "/OCS-Store")
......@@ -161,6 +168,7 @@ function removePreviewpic(itemKey) {
app.on('ready', async () => {
if (await startOcsManager()) {
createWindow();
autoUpdater.checkForUpdatesAndNotify()
} else {
app.quit();
}
......
......@@ -18,10 +18,10 @@
"dependencies": {
"electron-store": "2.*.*",
"electron-updater": "^4.1.2",
"electron-log": "^3.0.7",
"esm": "3.*.*",
"lit-html": "1.*.*",
"request": "2.*.*",
"update-electron-app": "^1.5.0"
"request": "2.*.*"
},
"devDependencies": {
"electron": "4.*.*",
......
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