Skip to content

Commit

Permalink
auto updater
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslopezj committed Mar 24, 2023
1 parent 2f94291 commit 3c04edf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Publish new version

https://www.electron.build/configuration/publish#recommended-github-releases-workflow
3 changes: 3 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { app, BrowserWindow } = require('electron');
const { autoUpdater } = require('electron-updater');

const isLocal = process.env.JUSTO_ENV === 'local';

Expand Down Expand Up @@ -32,6 +33,8 @@ const createWindow = () => {

// Open the DevTools.
// mainWindow.webContents.openDevTools();

autoUpdater.checkForUpdatesAndNotify();
};

// This method will be called when Electron has finished
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "justo-crisp",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",
"description": "Crisp POS",
"author": "nicolaslopezj",
Expand Down

0 comments on commit 3c04edf

Please sign in to comment.