refactor:下载链接

pull/67/head
xiaojunnuo 4 years ago
parent 9880c7690e
commit 014d2027e9

@ -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: '设置aborttrue可以快速失败节省时间' } },
'www.googleapis.com': { '.*': { abort: false, desc: '设置aborttrue可以快速失败节省时间' } },
'lh*.googleusercontent.com': { '.*': { abort: false, desc: '设置aborttrue可以快速失败节省时间' } },

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