Skip to content

Commit

Permalink
Merge pull request #49 from 0916dhkim/auto-update
Browse files Browse the repository at this point in the history
Auto Update Application
  • Loading branch information
0916dhkim committed Mar 14, 2020
2 parents fb3ba68 + bcf83c5 commit b046d43
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 27 deletions.
70 changes: 45 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bookery",
"version": "0.9.0-alpha",
"version": "0.10.0-alpha",
"description": "======= Bookery =======",
"main": "dist/main/main.js",
"scripts": {
Expand All @@ -21,6 +21,7 @@
},
"homepage": "https://github.com/0916dhkim/bookery#readme",
"dependencies": {
"electron-updater": "^4.2.5",
"fuse.js": "^3.6.1",
"immer": "^5.3.6",
"jquery": "^3.4.1",
Expand Down
4 changes: 3 additions & 1 deletion src/main/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { app, BrowserWindow, dialog } from "electron";
import { autoUpdater } from "electron-updater";
import { initializeApplicationMenu } from "./application_menu";
import { createEventEmitter, registerRequestHandler } from "./communication";
import {
Expand Down Expand Up @@ -182,7 +183,8 @@ app.on("activate", () => {
}
});

// create main BrowserWindow when electron is ready
// Auto-update then create main window.
app.on("ready", () => {
autoUpdater.checkForUpdatesAndNotify();
mainWindow = createMainWindow();
});

0 comments on commit b046d43

Please sign in to comment.