From 59df2772a6089676556135dab99d32203ba47911 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 17 Aug 2021 06:16:39 -0700 Subject: [PATCH] build: update --- packages/gui/package.json | 3 ++- packages/gui/pkg/after-all-artifact-build.js | 2 +- packages/gui/src/bridge/update/backend.js | 3 ++- packages/gui/vue.config.js | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/gui/package.json b/packages/gui/package.json index 0f22611e..150c6315 100644 --- a/packages/gui/package.json +++ b/packages/gui/package.json @@ -1,6 +1,6 @@ { "name": "@docmirror/dev-sidecar-gui", - "version": "1.5.1", + "version": "1.6.0", "private": false, "license": "MPL-2.0", "main": "background.js", @@ -8,6 +8,7 @@ "serve": "vue-cli-service serve", "lint": "vue-cli-service lint", "electron:build": "vue-cli-service electron:build", + "electron:build-w": "vue-cli-service electron:build --win", "electron": "vue-cli-service electron:serve", "postinstall": "electron-builder install-app-deps", "postuninstall": "electron-builder install-app-deps", diff --git a/packages/gui/pkg/after-all-artifact-build.js b/packages/gui/pkg/after-all-artifact-build.js index 61c911ba..51ad904b 100644 --- a/packages/gui/pkg/after-all-artifact-build.js +++ b/packages/gui/pkg/after-all-artifact-build.js @@ -15,7 +15,7 @@ function appendIntro (context, systemType, latest) { }) } exports.default = async function (context) { - // console.log('context222', context) appendIntro(context, 'mac', 'latest-mac.yml') appendIntro(context, 'win', 'latest.yml') + appendIntro(context, 'linux', 'latest-linux.yml') } diff --git a/packages/gui/src/bridge/update/backend.js b/packages/gui/src/bridge/update/backend.js index 669eda45..46df5d4d 100644 --- a/packages/gui/src/bridge/update/backend.js +++ b/packages/gui/src/bridge/update/backend.js @@ -51,7 +51,8 @@ function updateHandle (app, api, win, beforeQuit, quit, log) { if (process.env.NODE_ENV === 'development' && !isMac) { autoUpdater.setFeedURL({ provider: 'generic', - url: 'http://localhost/dev-sidecar/' + // url: 'http://localhost/dev-sidecar/' + url: 'http://dev-sidecar.docmirror.cn/update/preview/' }) if (isMac) { autoUpdater.updateConfigPath = path.join(__dirname, 'mac/DevSidecar.app/Contents/Resources/app-update.yml') diff --git a/packages/gui/vue.config.js b/packages/gui/vue.config.js index d07525f5..3fde517c 100644 --- a/packages/gui/vue.config.js +++ b/packages/gui/vue.config.js @@ -66,8 +66,8 @@ module.exports = { linux: { icon: 'build/mac/', target: [ - 'deb' - // 'AppImage' + 'deb', + 'AppImage' ] }, publish: {