build: update
parent
8c8ca9a106
commit
59df2772a6
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@docmirror/dev-sidecar-gui",
|
"name": "@docmirror/dev-sidecar-gui",
|
||||||
"version": "1.5.1",
|
"version": "1.6.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"main": "background.js",
|
"main": "background.js",
|
||||||
|
@ -8,6 +8,7 @@
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"lint": "vue-cli-service lint",
|
"lint": "vue-cli-service lint",
|
||||||
"electron:build": "vue-cli-service electron:build",
|
"electron:build": "vue-cli-service electron:build",
|
||||||
|
"electron:build-w": "vue-cli-service electron:build --win",
|
||||||
"electron": "vue-cli-service electron:serve",
|
"electron": "vue-cli-service electron:serve",
|
||||||
"postinstall": "electron-builder install-app-deps",
|
"postinstall": "electron-builder install-app-deps",
|
||||||
"postuninstall": "electron-builder install-app-deps",
|
"postuninstall": "electron-builder install-app-deps",
|
||||||
|
|
|
@ -15,7 +15,7 @@ function appendIntro (context, systemType, latest) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
exports.default = async function (context) {
|
exports.default = async function (context) {
|
||||||
// console.log('context222', context)
|
|
||||||
appendIntro(context, 'mac', 'latest-mac.yml')
|
appendIntro(context, 'mac', 'latest-mac.yml')
|
||||||
appendIntro(context, 'win', 'latest.yml')
|
appendIntro(context, 'win', 'latest.yml')
|
||||||
|
appendIntro(context, 'linux', 'latest-linux.yml')
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,8 @@ function updateHandle (app, api, win, beforeQuit, quit, log) {
|
||||||
if (process.env.NODE_ENV === 'development' && !isMac) {
|
if (process.env.NODE_ENV === 'development' && !isMac) {
|
||||||
autoUpdater.setFeedURL({
|
autoUpdater.setFeedURL({
|
||||||
provider: 'generic',
|
provider: 'generic',
|
||||||
url: 'http://localhost/dev-sidecar/'
|
// url: 'http://localhost/dev-sidecar/'
|
||||||
|
url: 'http://dev-sidecar.docmirror.cn/update/preview/'
|
||||||
})
|
})
|
||||||
if (isMac) {
|
if (isMac) {
|
||||||
autoUpdater.updateConfigPath = path.join(__dirname, 'mac/DevSidecar.app/Contents/Resources/app-update.yml')
|
autoUpdater.updateConfigPath = path.join(__dirname, 'mac/DevSidecar.app/Contents/Resources/app-update.yml')
|
||||||
|
|
|
@ -66,8 +66,8 @@ module.exports = {
|
||||||
linux: {
|
linux: {
|
||||||
icon: 'build/mac/',
|
icon: 'build/mac/',
|
||||||
target: [
|
target: [
|
||||||
'deb'
|
'deb',
|
||||||
// 'AppImage'
|
'AppImage'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
publish: {
|
publish: {
|
||||||
|
|
Loading…
Reference in New Issue