From 3c04edf2f0807f755d5fd81117898b15e3304a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicola=CC=81s=20Lo=CC=81pez?= Date: Fri, 24 Mar 2023 16:09:54 -0300 Subject: [PATCH] auto updater --- README.md | 3 +++ app/index.js | 3 +++ package.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..2422fa4 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Publish new version + +https://www.electron.build/configuration/publish#recommended-github-releases-workflow diff --git a/app/index.js b/app/index.js index 13ae578..1556613 100644 --- a/app/index.js +++ b/app/index.js @@ -1,4 +1,5 @@ const { app, BrowserWindow } = require('electron'); +const { autoUpdater } = require('electron-updater'); const isLocal = process.env.JUSTO_ENV === 'local'; @@ -32,6 +33,8 @@ const createWindow = () => { // Open the DevTools. // mainWindow.webContents.openDevTools(); + + autoUpdater.checkForUpdatesAndNotify(); }; // This method will be called when Electron has finished diff --git a/package.json b/package.json index 06992db..5a716d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "justo-crisp", - "version": "0.0.1", + "version": "0.0.2", "license": "MIT", "description": "Crisp POS", "author": "nicolaslopezj",