pull/88/head
parent
4fe61750f1
commit
09dbc69131
|
@ -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
|
|
@ -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
|
|
@ -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",
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue