build: copy app-update.yml

pull/88/head
xiaojunnuo 3 years ago
parent 972839359e
commit 1b1a8539c9

@ -1 +1 @@
VUE_APP_PUBLISH_URL=http://dev-sidecar.docmirror.cn/update/preview/ VUE_APP_PUBLISH_URL=http://dev-sidecar.docmirror.cn/update/

@ -1 +0,0 @@
VUE_APP_PUBLISH_URL=http://dev-sidecar.docmirror.cn/update/preview/

@ -0,0 +1,3 @@
provider: generic
url: 'http://dev-sidecar.docmirror.cn/update/preview/'
updaterCacheDirName: '@docmirrordev-sidecar-gui-updater'

@ -1,6 +1,6 @@
{ {
"name": "@docmirror/dev-sidecar-gui", "name": "@docmirror/dev-sidecar-gui",
"version": "1.5.0", "version": "1.6.0",
"private": false, "private": false,
"license": "MPL-2.0", "license": "MPL-2.0",
"main": "background.js", "main": "background.js",
@ -9,7 +9,6 @@
"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": "vue-cli-service electron:serve", "electron": "vue-cli-service electron:serve",
"electron:pre": "vue-cli-service electron:serve --mode pre",
"postinstall": "electron-builder install-app-deps", "postinstall": "electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps", "postuninstall": "electron-builder install-app-deps",
"electron:icons": "electron-icon-builder --input=./public/logo/win.png --output=build --flatten", "electron:icons": "electron-icon-builder --input=./public/logo/win.png --output=build --flatten",

@ -0,0 +1,7 @@
const fs = require('fs')
exports.default = async function (context) {
// console.log('context', context)
if (context.packager.platform.nodeName === 'linux') {
fs.copyFileSync('../build/app-update.yml', '../dist_electron/linux_unpacked/resources/app-update.yml')
}
}

@ -38,6 +38,7 @@ module.exports = {
builderOptions: { builderOptions: {
afterPack: './pkg/after-pack.js', afterPack: './pkg/after-pack.js',
afterAllArtifactBuild: './pkg/after-all-artifact-build.js', afterAllArtifactBuild: './pkg/after-all-artifact-build.js',
afterPackContent: './pkg/after-pack-content.js',
// builderOptions: { // builderOptions: {
// publish: ['github']// 此处写入github 就好,不用添加其他内容 // publish: ['github']// 此处写入github 就好,不用添加其他内容
// }, // },

Loading…
Cancel
Save