正在显示
6 个修改的文件
包含
24 行增加
和
17 行删除
此文件的差异被折叠,
点击展开。
| ... | @@ -23,13 +23,9 @@ | ... | @@ -23,13 +23,9 @@ |
| 23 | "publish": [ | 23 | "publish": [ |
| 24 | { | 24 | { |
| 25 | "provider": "generic", | 25 | "provider": "generic", |
| 26 | - "url": "http://127.0.0.1:25565/" | 26 | + "url": "http://127.0.0.1" |
| 27 | } | 27 | } |
| 28 | ], | 28 | ], |
| 29 | - "nsis": { | ||
| 30 | - "oneClick": false, | ||
| 31 | - "allowToChangeInstallationDirectory": true | ||
| 32 | - }, | ||
| 33 | "productName": "electron-vue-admin", | 29 | "productName": "electron-vue-admin", |
| 34 | "appId": "org.simulatedgreg.electron-vue", | 30 | "appId": "org.simulatedgreg.electron-vue", |
| 35 | "directories": { | 31 | "directories": { |
| ... | @@ -57,7 +53,16 @@ | ... | @@ -57,7 +53,16 @@ |
| 57 | "icon": "build/icons/icon.icns" | 53 | "icon": "build/icons/icon.icns" |
| 58 | }, | 54 | }, |
| 59 | "win": { | 55 | "win": { |
| 60 | - "icon": "build/icons/icon.ico" | 56 | + "icon": "build/icons/icon.ico", |
| 57 | + "target": [ | ||
| 58 | + { | ||
| 59 | + "target": "nsis", | ||
| 60 | + "arch": [ | ||
| 61 | + "x64", | ||
| 62 | + "ia32" | ||
| 63 | + ] | ||
| 64 | + } | ||
| 65 | + ] | ||
| 61 | }, | 66 | }, |
| 62 | "linux": { | 67 | "linux": { |
| 63 | "icon": "build/icons" | 68 | "icon": "build/icons" | ... | ... |
| 1 | -version: 6.0.13 | 1 | +version: 6.1.1 |
| 2 | files: | 2 | files: |
| 3 | - url: electron-vue-admin Setup 0.0.1.exe | 3 | - url: electron-vue-admin Setup 0.0.1.exe |
| 4 | sha512: 6higqp9mFJANIRdE59Cyl/3CgaWuHZU92EaRUfwTjXPi9b/OH/ndiLNhK8AgWB9JIz57xBwnmgXl+eT0xAjUGw== | 4 | sha512: 6higqp9mFJANIRdE59Cyl/3CgaWuHZU92EaRUfwTjXPi9b/OH/ndiLNhK8AgWB9JIz57xBwnmgXl+eT0xAjUGw== | ... | ... |
| 1 | var express = require('express') | 1 | var express = require('express') |
| 2 | -var fs = require('fs') | ||
| 3 | const path = require('path') | 2 | const path = require('path') |
| 4 | var app = express() | 3 | var app = express() |
| 5 | 4 | ||
| 6 | app.use(express.static(path.join(__dirname, './client'))) | 5 | app.use(express.static(path.join(__dirname, './client'))) |
| 7 | 6 | ||
| 8 | var server = app.listen(25565, function () { | 7 | var server = app.listen(25565, function () { |
| 9 | - var host = server.address().address; | 8 | + var host = server.address().address |
| 10 | - var port = server.address().port; | 9 | + var port = server.address().port |
| 11 | 10 | ||
| 12 | - console.log('Example app listening at http://%s:%s', host, port); | ||
| 13 | -}); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 11 | + console.log('服务启动', host, port) | ||
| 12 | +}) | ... | ... |
| ... | @@ -19,8 +19,10 @@ export default { | ... | @@ -19,8 +19,10 @@ export default { |
| 19 | // 当更新发生错误的时候触发。 | 19 | // 当更新发生错误的时候触发。 |
| 20 | autoUpdater.on('error', (err) => { | 20 | autoUpdater.on('error', (err) => { |
| 21 | console.log('更新出现错误') | 21 | console.log('更新出现错误') |
| 22 | - console.log(err) | 22 | + console.log(err.message) |
| 23 | - Message(mainWindow, -1, err) | 23 | + if (err.message.includes('sha512 checksum mismatch')) { |
| 24 | + Message(mainWindow, -1, 'sha512校验失败') | ||
| 25 | + } | ||
| 24 | }) | 26 | }) |
| 25 | 27 | ||
| 26 | // 当开始检查更新的时候触发 | 28 | // 当开始检查更新的时候触发 |
| ... | @@ -53,7 +55,9 @@ export default { | ... | @@ -53,7 +55,9 @@ export default { |
| 53 | }) | 55 | }) |
| 54 | // 执行自动更新检查 | 56 | // 执行自动更新检查 |
| 55 | ipcMain.on('check-update', () => { | 57 | ipcMain.on('check-update', () => { |
| 56 | - autoUpdater.checkForUpdates() | 58 | + autoUpdater.checkForUpdates().catch(err => { |
| 59 | + console.log('网络连接问题', err) | ||
| 60 | + }) | ||
| 57 | }) | 61 | }) |
| 58 | // 渲染进程执行更新操作 | 62 | // 渲染进程执行更新操作 |
| 59 | ipcMain.on('confirm-update', () => { | 63 | ipcMain.on('confirm-update', () => { | ... | ... |
| ... | @@ -116,8 +116,7 @@ export default { | ... | @@ -116,8 +116,7 @@ export default { |
| 116 | switch (data.state) { | 116 | switch (data.state) { |
| 117 | case -1: | 117 | case -1: |
| 118 | const msgdata = { | 118 | const msgdata = { |
| 119 | - title: "警告", | 119 | + title: data.msg, |
| 120 | - message: "更新检查失败!" | ||
| 121 | }; | 120 | }; |
| 122 | api.MessageBox(dialog, msgdata); | 121 | api.MessageBox(dialog, msgdata); |
| 123 | break; | 122 | break; | ... | ... |
-
请 注册 或 登录 后发表评论