mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-02 11:47:57 +08:00
fix: json homepage error
This commit is contained in:
parent
403357a0a5
commit
e6c014adc1
@ -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';
|
||||
}
|
||||
}
|
||||
|
@ -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": [
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user