Skip to content

Commit

Permalink
More auto updater fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Dec 24, 2023
1 parent b55d6f6 commit 7fa271f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const log = require('electron-log')
log.initialize()
const electron = require('electron')
const { app, ipcMain } = electron
const remoteMain = require('@electron/remote/main')
Expand All @@ -12,8 +14,9 @@ const makeTrackDict = require('./track-dict')
const audio = require('./windows/audio')
const player = require('./windows/player')
const AudioLibrary = require('./lib/audio-library')
const log = require('electron-log')
const autoUpdater = require('electron-updater').autoUpdater
autoUpdater.logger = log
autoUpdater.autoDownload = true

// handle uncaught exceptions before calling any functions
process.on('uncaughtException', (err) => {
Expand Down
2 changes: 2 additions & 0 deletions renderer/audio/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const el = require('electron-log/renderer')
el.info('Log from the autio process')
const { ipcRenderer } = require('electron')
const log = require('nanologger')('player')
const AudioPlayer = require('./audio-player')
Expand Down
2 changes: 2 additions & 0 deletions renderer/player/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const log = require('electron-log/renderer')
log.info('Log from the player process')
const choo = require('choo')
const { ipcRenderer } = require('electron')
const app = window.hyperamp = choo()
Expand Down

0 comments on commit 7fa271f

Please sign in to comment.