fix: json homepage error

This commit is contained in:
秦圆圆 2022-02-17 18:37:46 +08:00
parent 403357a0a5
commit e6c014adc1
3 changed files with 13 additions and 12 deletions

View File

@ -1,8 +1,12 @@
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();
@ -10,6 +14,6 @@ export class EoUpdater {
private watchLog() {
//autoUpdater log
autoUpdater.logger = log;
autoUpdater.logger['transports'].file.level = 'debug';
autoUpdater.logger['transports'].file.level = 'info';
}
}

View File

@ -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": [
{
@ -17,6 +11,13 @@
"filter": ["**/*"]
}
],
"publish": ["github"],
"generateUpdatesFilesForAllChannels":true,
"nsis": {
"oneClick": false,
"allowElevation": true,
"allowToChangeInstallationDirectory": true
},
"win": {
"icon": "dist/assets/icons/256x256.png",
"target": [

View File

@ -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"