pull/88/head
xiaojunnuo 2021-08-18 16:01:48 +08:00
parent 4fe61750f1
commit 09dbc69131
4 changed files with 3 additions and 9 deletions

View File

@ -1,3 +0,0 @@
VUE_APP_PUBLISH_URL=http://dev-sidecar.docmirror.cn/update/preview/
VUE_APP_PUBLISH_PROVIDER=generic
VUE_APP_IS_BUILD=true

View File

@ -1,3 +1,2 @@
VUE_APP_PUBLISH_URL=http://dev-sidecar.docmirror.cn/update/preview/
VUE_APP_PUBLISH_PROVIDER=generic
VUE_APP_IS_BUILD=false
VUE_APP_PUBLISH_PROVIDER=generic

View File

@ -8,7 +8,7 @@
"serve": "vue-cli-service serve",
"lint": "vue-cli-service lint",
"electron:build": "vue-cli-service electron:build",
"electron:build:pre": "vue-cli-service electron:build --mode build-pre",
"electron:build:pre": "cross-env NODE_ENV=production && vue-cli-service electron:build --mode pre",
"electron": "vue-cli-service electron:serve",
"electron:pre": "vue-cli-service electron:serve --mode pre",
"postinstall": "electron-builder install-app-deps",

View File

@ -48,9 +48,7 @@ function updateHandle (app, api, win, beforeQuit, quit, log) {
updateNotAva: '当前为最新版本,无需更新'
}
// 本地开发环境改变app-update.yml地址
const isBuild = process.env.VUE_APP_IS_BUILD
console.log('is build', isBuild, process.env.NODE_ENV === 'development' && isBuild !== 'true')
if (process.env.NODE_ENV === 'development' && isBuild !== 'true') {
if (process.env.NODE_ENV === 'development') {
// const publishUrl = process.env.VUE_APP_PUBLISH_URL
// autoUpdater.setFeedURL({
// provider: 'generic',