refactor:下载链接
parent
9880c7690e
commit
014d2027e9
|
@ -114,12 +114,12 @@ module.exports = {
|
||||||
'themes.googleusercontent.com': {
|
'themes.googleusercontent.com': {
|
||||||
'.*': { proxy: 'google-themes.proxy.ustclug.org' }
|
'.*': { proxy: 'google-themes.proxy.ustclug.org' }
|
||||||
},
|
},
|
||||||
'fonts.gstatic.com': {
|
// 'fonts.gstatic.com': {
|
||||||
'.*': {
|
// '.*': {
|
||||||
proxy: 'gstatic.loli.net',
|
// proxy: 'gstatic.loli.net',
|
||||||
backup: ['fonts-gstatic.proxy.ustclug.org']
|
// backup: ['fonts-gstatic.proxy.ustclug.org']
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
'clients*.google.com': { '.*': { abort: false, desc: '设置abort:true可以快速失败,节省时间' } },
|
'clients*.google.com': { '.*': { abort: false, desc: '设置abort:true可以快速失败,节省时间' } },
|
||||||
'www.googleapis.com': { '.*': { abort: false, desc: '设置abort:true可以快速失败,节省时间' } },
|
'www.googleapis.com': { '.*': { abort: false, desc: '设置abort:true可以快速失败,节省时间' } },
|
||||||
'lh*.googleusercontent.com': { '.*': { abort: false, desc: '设置abort:true可以快速失败,节省时间' } },
|
'lh*.googleusercontent.com': { '.*': { abort: false, desc: '设置abort:true可以快速失败,节省时间' } },
|
||||||
|
|
|
@ -95,7 +95,7 @@ function updateHandle (app, win, beforeQuit, updateUrl, log) {
|
||||||
export default {
|
export default {
|
||||||
install (context) {
|
install (context) {
|
||||||
const { app, win, beforeQuit, log } = 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') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
Object.defineProperty(app, 'isPackaged', {
|
Object.defineProperty(app, 'isPackaged', {
|
||||||
get () {
|
get () {
|
||||||
|
|
Loading…
Reference in New Issue