Browse Source

refactor:下载链接

pull/67/head
xiaojunnuo 4 years ago
parent
commit
014d2027e9
  1. 12
      packages/core/src/config/index.js
  2. 2
      packages/gui/src/bridge/update/backend.js

12
packages/core/src/config/index.js

@ -114,12 +114,12 @@ module.exports = {
'themes.googleusercontent.com': {
'.*': { proxy: 'google-themes.proxy.ustclug.org' }
},
'fonts.gstatic.com': {
'.*': {
proxy: 'gstatic.loli.net',
backup: ['fonts-gstatic.proxy.ustclug.org']
}
},
// 'fonts.gstatic.com': {
// '.*': {
// proxy: 'gstatic.loli.net',
// backup: ['fonts-gstatic.proxy.ustclug.org']
// }
// },
'clients*.google.com': { '.*': { abort: false, desc: '设置abort:true可以快速失败,节省时间' } },
'www.googleapis.com': { '.*': { abort: false, desc: '设置abort:true可以快速失败,节省时间' } },
'lh*.googleusercontent.com': { '.*': { abort: false, desc: '设置abort:true可以快速失败,节省时间' } },

2
packages/gui/src/bridge/update/backend.js

@ -95,7 +95,7 @@ function updateHandle (app, win, beforeQuit, updateUrl, log) {
export default {
install (context) {
const { app, win, beforeQuit, log } = context
const updateUrl = 'http://dev-sidecar.docmirror.cn/update/'
const updateUrl = 'https://dev-sidecar.oss-cn-shenzhen.aliyuncs.com/update/'
if (process.env.NODE_ENV === 'development') {
Object.defineProperty(app, 'isPackaged', {
get () {

Loading…
Cancel
Save