Browse Source

build: copy app-update.yml

pull/88/head
xiaojunnuo 3 years ago
parent
commit
1b1a8539c9
  1. 2
      packages/gui/.env
  2. 1
      packages/gui/.env.pre
  3. 3
      packages/gui/build/app-update.yml
  4. 3
      packages/gui/package.json
  5. 7
      packages/gui/pkg/after-pack-content.js
  6. 1
      packages/gui/vue.config.js

2
packages/gui/.env

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

1
packages/gui/.env.pre

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

3
packages/gui/build/app-update.yml

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

3
packages/gui/package.json

@ -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",

7
packages/gui/pkg/after-pack-content.js

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

1
packages/gui/vue.config.js

@ -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 就好,不用添加其他内容
// },

Loading…
Cancel
Save