build: copy app-update.yml

pull/88/head
xiaojunnuo 2021-08-18 09:23:25 +08:00
parent 972839359e
commit 1b1a8539c9
6 changed files with 13 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -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')
}
}

View File

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