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 { autoUpdater } from 'electron-updater';
|
||||||
import log from 'electron-log';
|
import log from 'electron-log';
|
||||||
|
const appVersion = require('./package.json').version;
|
||||||
|
|
||||||
export class EoUpdater {
|
export class EoUpdater {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.watchLog();
|
this.watchLog();
|
||||||
|
if (appVersion.includes('beta')) autoUpdater.channel = 'beta';
|
||||||
|
console.log('appVersion', appVersion, autoUpdater.channel);
|
||||||
}
|
}
|
||||||
check() {
|
check() {
|
||||||
autoUpdater.checkForUpdatesAndNotify();
|
autoUpdater.checkForUpdatesAndNotify();
|
||||||
@ -10,6 +14,6 @@ export class EoUpdater {
|
|||||||
private watchLog() {
|
private watchLog() {
|
||||||
//autoUpdater log
|
//autoUpdater log
|
||||||
autoUpdater.logger = log;
|
autoUpdater.logger = log;
|
||||||
autoUpdater.logger['transports'].file.level = 'debug';
|
autoUpdater.logger['transports'].file.level = 'info';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,12 +3,6 @@
|
|||||||
"directories": {
|
"directories": {
|
||||||
"output": "release/"
|
"output": "release/"
|
||||||
},
|
},
|
||||||
"nsis": {
|
|
||||||
"oneClick": false,
|
|
||||||
"allowElevation": true,
|
|
||||||
"allowToChangeInstallationDirectory": true
|
|
||||||
},
|
|
||||||
"publish": ["github"],
|
|
||||||
"files": ["**/*", "!**/*.ts", "!*.map", "!package.json", "!package-lock.json"],
|
"files": ["**/*", "!**/*.ts", "!*.map", "!package.json", "!package-lock.json"],
|
||||||
"extraResources": [
|
"extraResources": [
|
||||||
{
|
{
|
||||||
@ -17,6 +11,13 @@
|
|||||||
"filter": ["**/*"]
|
"filter": ["**/*"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"publish": ["github"],
|
||||||
|
"generateUpdatesFilesForAllChannels":true,
|
||||||
|
"nsis": {
|
||||||
|
"oneClick": false,
|
||||||
|
"allowElevation": true,
|
||||||
|
"allowToChangeInstallationDirectory": true
|
||||||
|
},
|
||||||
"win": {
|
"win": {
|
||||||
"icon": "dist/assets/icons/256x256.png",
|
"icon": "dist/assets/icons/256x256.png",
|
||||||
"target": [
|
"target": [
|
||||||
|
@ -2,11 +2,7 @@
|
|||||||
"name": "eoapi",
|
"name": "eoapi",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "API ToolKit",
|
"description": "API ToolKit",
|
||||||
"homepage": "https://github.com/scarqin/eoapi.git",
|
"homepage": "https://github.com/eolinker/eoapi.git",
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/scarqin/eoapi.git"
|
|
||||||
},
|
|
||||||
"author": {
|
"author": {
|
||||||
"name": "eoapi",
|
"name": "eoapi",
|
||||||
"email": "dev@eolink.com"
|
"email": "dev@eolink.com"
|
||||||
|
Loading…
Reference in New Issue
Block a user