Switch to installer to enable auto-updates

This commit is contained in:
Geomitron
2020-05-19 21:28:27 -04:00
parent ac22fb286d
commit 5cd488e5ef
8 changed files with 116 additions and 24 deletions

View File

@@ -10,7 +10,7 @@ class DownloadHandler implements IPCEmitHandler<'download'> {
currentDownload: ChartDownload = undefined
retryWaiting: ChartDownload[] = []
handler(data: Download) { // TODO: make sure UI can't add the same versionID more than once
handler(data: Download) {
switch (data.action) {
case 'add': this.addDownload(data); break
case 'retry': this.retryDownload(data); break

View File

@@ -2,6 +2,7 @@ import { app, BrowserWindow, ipcMain } from 'electron'
import * as windowStateKeeper from 'electron-window-state'
import * as path from 'path'
import * as url from 'url'
require('dotenv').config()
require('electron-unhandled')({ showDialog: true })
// IPC Handlers