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",
|
"name": "@docmirror/dev-sidecar-gui",
|
||||||
"version": "1.4.0",
|
"version": "1.3.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -95,7 +95,7 @@ function updateHandle (app, win, beforeQuit, updateUrl, log) {
|
||||||
export default {
|
export default {
|
||||||
install (context) {
|
install (context) {
|
||||||
const { app, win, beforeQuit, log } = 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') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
Object.defineProperty(app, 'isPackaged', {
|
Object.defineProperty(app, 'isPackaged', {
|
||||||
get () {
|
get () {
|
||||||
|
@ -103,7 +103,7 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// updateUrl = 'http://dev-sidecar.docmirror.cn/update/'
|
// updateUrl = 'http://dev-sidecar.docmirror.cn/update/'
|
||||||
updateUrl = 'http://localhost/dev-sidecar/'
|
// updateUrl = 'http://localhost/dev-sidecar/'
|
||||||
}
|
}
|
||||||
updateHandle(app, win, beforeQuit, updateUrl, log)
|
updateHandle(app, win, beforeQuit, updateUrl, log)
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,10 +53,7 @@ module.exports = {
|
||||||
allowToChangeInstallationDirectory: true
|
allowToChangeInstallationDirectory: true
|
||||||
},
|
},
|
||||||
mac: {
|
mac: {
|
||||||
target: 'dmg'
|
icon: 'build/mac/icon.icns'
|
||||||
},
|
|
||||||
win: {
|
|
||||||
icon: '/public/icon.png'
|
|
||||||
},
|
},
|
||||||
publish: {
|
publish: {
|
||||||
provider: 'generic',
|
provider: 'generic',
|
||||||
|
|
Loading…
Reference in New Issue