refactor: update
parent
7d0e14e2ca
commit
6842a1659b
Binary file not shown.
Before Width: | Height: | Size: 353 KiB After Width: | Height: | Size: 264 KiB |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@docmirror/dev-sidecar-gui",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"private": false,
|
||||
"license": "MPL-2.0",
|
||||
"scripts": {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -53,10 +53,7 @@ module.exports = {
|
|||
allowToChangeInstallationDirectory: true
|
||||
},
|
||||
mac: {
|
||||
target: 'dmg'
|
||||
},
|
||||
win: {
|
||||
icon: '/public/icon.png'
|
||||
icon: 'build/mac/icon.icns'
|
||||
},
|
||||
publish: {
|
||||
provider: 'generic',
|
||||
|
|
Loading…
Reference in New Issue