Skip to content

Commit

Permalink
feat: install update-electron-app
Browse files Browse the repository at this point in the history
ref #8
  • Loading branch information
Xiphe committed Aug 18, 2020
1 parent 0cccd39 commit cbafa9c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
2 changes: 2 additions & 0 deletions main/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ import disableUnused from './disableUnused';
import { createDefaultMenu } from './defaultMenu';
import registerSave from './registerSave';
import moneymoneyHandlers from './moneymoney/handlers';
import startUpdater from 'update-electron-app';

export default function bootstrap() {
/* ref https://github.com/Xiphe/budgetbudget/issues/12 */
app.allowRendererProcessReuse = true;

disableUnused(app);
(startUpdater as any)();

const windowManager = createWindowManager(ipcMain);
const openFile = createOpenFile(ipcMain, windowManager.createWindow);
Expand Down
32 changes: 30 additions & 2 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
Expand Up @@ -50,7 +50,8 @@
"plist": "3.0.1",
"react": "16.13.0",
"react-dom": "16.13.0",
"react-helmet": "6.0.0"
"react-helmet": "6.0.0",
"update-electron-app": "1.5.0"
},
"devDependencies": {
"@testing-library/jest-dom": "5.1.1",
Expand Down

0 comments on commit cbafa9c

Please sign in to comment.