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 282d13d commit e0bcea0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
2 changes: 2 additions & 0 deletions main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import { createDefaultMenu } from './defaultMenu';
import registerSave from './registerSave';
import moneymoneyHandlers from './moneymoney/handlers';
import getSettings from '../src/shared/settings';
import startUpdater from 'update-electron-app';

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

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

const settings = getSettings();
const windowManager = createWindowManager(app, ipcMain, settings);
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 @@ -84,7 +84,8 @@
"plist": "3.0.1",
"react": "0.0.0-experimental-33c3af284",
"react-dom": "0.0.0-experimental-33c3af284",
"recoil": "0.0.7"
"recoil": "0.0.7",
"update-electron-app": "1.5.0"
},
"devDependencies": {
"@craco/craco": "5.6.4",
Expand Down

0 comments on commit e0bcea0

Please sign in to comment.