diff --git a/main.js b/main.js index e58e872..daef30d 100644 --- a/main.js +++ b/main.js @@ -8,6 +8,8 @@ const {autoUpdater} = require("electron-updater"); //------------------------------------------------------------------- // Logging // +// THIS SECTION IS NOT REQUIRED +// // This logging setup is not required for auto-updates to work, // but it sure makes debugging easier :) //------------------------------------------------------------------- @@ -17,6 +19,8 @@ log.info('App starting...'); //------------------------------------------------------------------- // Define the menu +// +// THIS SECTION IS NOT REQUIRED //------------------------------------------------------------------- let template = [] if (process.platform === 'darwin') { @@ -41,6 +45,12 @@ if (process.platform === 'darwin') { //------------------------------------------------------------------- // Open a window that displays the version +// +// THIS SECTION IS NOT REQUIRED +// +// This isn't required for auto-updates to work, but it's easier +// for the app to show a window than to have to click "About" to see +// that updates are working. //------------------------------------------------------------------- let win; function createDefaultWindow() { diff --git a/package.json b/package.json index 34a9329..696ccbb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "electron-updater-example", - "version": "0.3.0", + "version": "0.3.1", "main": "main.js", "description": "electron-updater example project", "author": "Matt Haggard",