Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
KinoriN committed Oct 14, 2019
1 parent cb1e900 commit d70e47a
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 27 deletions.
3 changes: 3 additions & 0 deletions electron/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import * as request from 'request';
import * as fs from 'fs';
import { join } from 'path';
import { autoUpdater } from 'electron-updater';
import { VtbInfoService, FollowListService } from './services';
import { FollowList, VtbInfo } from '../../interfaces';
import { PlayerObj } from '../../interfaces';
Expand All @@ -13,6 +14,8 @@ let win: BrowserWindow = null;
let vtbInfosService: VtbInfoService;
const mainWindowInit = new Promise<BrowserWindow>((resolve) => {
app.on('ready', () => {
autoUpdater.setFeedURL('https://dd.center/api/update/ddmonitor/')
autoUpdater.checkForUpdates();
resolve(createMainWindow());
});
});
Expand Down
81 changes: 55 additions & 26 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": "bili-dd-monitor",
"version": "0.0.6",
"version": "0.0.7",
"author": "kinori",
"scripts": {
"ng": "ng",
Expand All @@ -20,6 +20,7 @@
"private": true,
"dependencies": {
"electron-settings": "^3.2.0",
"electron-updater": "^4.1.2",
"request": "^2.88.0",
"socket.io-client": "^2.3.0"
},
Expand Down

0 comments on commit d70e47a

Please sign in to comment.