MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / switchToR2Mirror

Function switchToR2Mirror

apps/desktop/main/update.ts:47–53  ·  view source on GitHub ↗

* 切换到 R2 镜像源

()

Source from the content-addressed store, hash-verified

45 * 切换到 R2 镜像源
46 */
47function switchToR2Mirror(): void {
48 currentSource = 'r2'
49 autoUpdater.setFeedURL({
50 provider: 'generic',
51 url: R2_MIRROR_URL,
52 })
53}
54
55/**
56 * 切换到 GitHub 源(备用更新源)

Callers 1

resetToDefaultSourceFunction · 0.85

Calls 1

setFeedURLMethod · 0.80

Tested by

no test coverage detected