refactor: update

pull/67/head
xiaojunnuo 2021-01-10 19:51:36 +08:00
parent 7d0e14e2ca
commit 6842a1659b
4 changed files with 4 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 KiB

After

Width:  |  Height:  |  Size: 264 KiB

View File

@ -1,6 +1,6 @@
{
"name": "@docmirror/dev-sidecar-gui",
"version": "1.4.0",
"version": "1.3.0",
"private": false,
"license": "MPL-2.0",
"scripts": {

View File

@ -95,7 +95,7 @@ function updateHandle (app, win, beforeQuit, updateUrl, log) {
export default {
install (context) {
const { app, win, beforeQuit, log } = context
let updateUrl = 'http://dev-sidecar.docmirror.cn/update/'
const updateUrl = 'http://dev-sidecar.docmirror.cn/update/'
if (process.env.NODE_ENV === 'development') {
Object.defineProperty(app, 'isPackaged', {
get () {
@ -103,7 +103,7 @@ export default {
}
})
// updateUrl = 'http://dev-sidecar.docmirror.cn/update/'
updateUrl = 'http://localhost/dev-sidecar/'
// updateUrl = 'http://localhost/dev-sidecar/'
}
updateHandle(app, win, beforeQuit, updateUrl, log)
}

View File

@ -53,10 +53,7 @@ module.exports = {
allowToChangeInstallationDirectory: true
},
mac: {
target: 'dmg'
},
win: {
icon: '/public/icon.png'
icon: 'build/mac/icon.icns'
},
publish: {
provider: 'generic',