diff --git a/main.js b/main.js index 9c7e60bb..6bf527f0 100644 --- a/main.js +++ b/main.js @@ -41,7 +41,7 @@ async function fetchReleaseNotes(version) { -autoUpdater.autoDownload = false; + log.transports.file.resolvePathFn = () => path.join(APP_DATA, 'logs/main.log'); log.info('App starting...'); @@ -76,7 +76,7 @@ autoUpdater.on('update-downloaded', async function (info) { type: 'info', title: 'Update Available', message: `A new version (${info.version}) is available.\n\nRelease Notes:\n${releaseNotes}\n\nDo you want to install it now?`, - buttons: ['Now', 'Install on Exit'], + buttons: ['Quit and Install', 'Install after Exit'], defaultId: 1, noLink: true }).then((result) => { @@ -399,6 +399,7 @@ app.whenReady().then(async () => { }) }); //Update handling + autoUpdater.autoDownload = false; autoUpdater.checkForUpdatesAndNotify() }); diff --git a/package.json b/package.json index 87535c20..eeb14f30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chirpity", - "version": "0.9.7", + "version": "0.9.8", "description": "Chirpity Nocmig", "main": "main.js", "scripts": { diff --git a/preload.js b/preload.js index 18ccdb0e..b4adbe7b 100644 --- a/preload.js +++ b/preload.js @@ -75,6 +75,6 @@ window.addEventListener('DOMContentLoaded', () => { // Update your UI with the progress information updateProgressBar.value = progressObj.percent; // Hide progress when done - if (progressObj.percent > 99) tracking.classList.add('d-none') + if (progressObj.percent === 100) tracking.classList.add('d-none') }); })