| | |
| | | // isStandard: false, |
| | | |
| | | // 打包语言 CN, US |
| | | // lang: 'CN', |
| | | lang: 'US', |
| | | lang: 'CN', |
| | | // lang: 'US', |
| | | } |
| | |
| | | import path from "path"; |
| | | import child_process from "child_process"; |
| | | import log from "electron-log"; |
| | | import update from "./update"; |
| | | // import update from "./update"; |
| | | import config from "./assets/js/config"; |
| | | const { lang } = config; |
| | | |
| | |
| | | function () { |
| | | log.info("窗口初始化 接口不通"); |
| | | log.info("正在终止java进程,然后重启服务"); |
| | | update(win.webContents, true); |
| | | // update(win.webContents, true); |
| | | let stop = child_process.spawn("cmd.exe", ["/c", "stop.bat"]); |
| | | stop.on("exit", function (code) { |
| | | if (code > 0) { |
| | |
| | | log.info("ready event"); |
| | | |
| | | // TODO |
| | | if ('US' != lang) { |
| | | setTimeout(() => { |
| | | update(win.webContents, true); |
| | | }, 1000 * 30); |
| | | } |
| | | // if ('US' != lang) { |
| | | // setTimeout(() => { |
| | | // update(win.webContents, true); |
| | | // }, 1000 * 30); |
| | | // } |
| | | }); |
| | | |
| | | win.webContents.session.on("will-download", (e, item) => { |
| | |
| | | title: this.$t("Help"), |
| | | visible: false, |
| | | children: [ |
| | | { |
| | | title: this.$t("Update"), |
| | | method: "checkForUpdate", |
| | | }, |
| | | // { |
| | | // title: this.$t("Update"), |
| | | // method: "checkForUpdate", |
| | | // }, |
| | | ], |
| | | }, |
| | | ]; |
| | |
| | | title: this.$t("OperatingVideo"), |
| | | method: "video", |
| | | }, |
| | | { |
| | | title: this.$t("Update"), |
| | | method: "checkForUpdate", |
| | | }, |
| | | // { |
| | | // title: this.$t("Update"), |
| | | // method: "checkForUpdate", |
| | | // }, |
| | | ]; |
| | | const menu1 = [ |
| | | { |