Skip to content

Commit

Permalink
Adding how one might set up auto updates;
Browse files Browse the repository at this point in the history
renaming files so we get markdown support (sorry github)
  • Loading branch information
reZach committed Feb 7, 2021
1 parent 8e513c4 commit 4b2f549
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -47,7 +47,7 @@ Built-in to this template are a number of popular frameworks already wired up to


## Roadmap
There are a number of additions that I'd like to implement in this repository, namely [auto-updating](https://www.electron.build/auto-update) and more release-focused enhancements and test suites, but those are lower priority (but I welcome PRs!).
There are a number of additions that I'd like to implement in this repository, namely more release-focused enhancements and test suites, but those are lower priority (but I welcome PRs!).

## Architecture
For a more detailed view of the architecture of the template, please check out [here](https://github.com/reZach/secure-electron-template/blob/master/docs/architecture.md). I would _highly_ recommend reading this document to get yourself familiarized with this template.
Expand Down
6 changes: 6 additions & 0 deletions app/electron/main.js
Expand Up @@ -28,6 +28,12 @@ let win;
let menuBuilder;

async function createWindow() {

// If you'd like to set up auto-updating for your app,
// I'd recommend looking at https://github.com/iffy/electron-updater-example
// to use the method most suitable for you.
// eg. autoUpdater.checkForUpdatesAndNotify();

if (!isDev) {
// Needs to happen before creating/loading the browser window;
// protocol is only used in prod
Expand Down

0 comments on commit 4b2f549

Please sign in to comment.