Skip to content

Commit

Permalink
fix: json homepage error
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed Feb 17, 2022
1 parent 403357a commit e6c014a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
6 changes: 5 additions & 1 deletion app/updater.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import { autoUpdater } from 'electron-updater';
import log from 'electron-log';
const appVersion = require('./package.json').version;

export class EoUpdater {
constructor() {
this.watchLog();
if (appVersion.includes('beta')) autoUpdater.channel = 'beta';
console.log('appVersion', appVersion, autoUpdater.channel);
}
check() {
autoUpdater.checkForUpdatesAndNotify();
}
private watchLog() {
//autoUpdater log
autoUpdater.logger = log;
autoUpdater.logger['transports'].file.level = 'debug';
autoUpdater.logger['transports'].file.level = 'info';
}
}
13 changes: 7 additions & 6 deletions electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
"directories": {
"output": "release/"
},
"nsis": {
"oneClick": false,
"allowElevation": true,
"allowToChangeInstallationDirectory": true
},
"publish": ["github"],
"files": ["**/*", "!**/*.ts", "!*.map", "!package.json", "!package-lock.json"],
"extraResources": [
{
Expand All @@ -17,6 +11,13 @@
"filter": ["**/*"]
}
],
"publish": ["github"],
"generateUpdatesFilesForAllChannels":true,
"nsis": {
"oneClick": false,
"allowElevation": true,
"allowToChangeInstallationDirectory": true
},
"win": {
"icon": "dist/assets/icons/256x256.png",
"target": [
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"name": "eoapi",
"version": "0.0.1",
"description": "API ToolKit",
"homepage": "https://github.com/scarqin/eoapi.git",
"repository": {
"type": "git",
"url": "https://github.com/scarqin/eoapi.git"
},
"homepage": "https://github.com/eolinker/eoapi.git",
"author": {
"name": "eoapi",
"email": "dev@eolink.com"
Expand Down

0 comments on commit e6c014a

Please sign in to comment.