MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / switchToGitHub

Function switchToGitHub

apps/desktop/main/update.ts:58–66  ·  view source on GitHub ↗

* 切换到 GitHub 源(备用更新源)

()

Source from the content-addressed store, hash-verified

56 * 切换到 GitHub 源(备用更新源)
57 */
58function switchToGitHub(): void {
59 currentSource = 'github'
60 autoUpdater.setFeedURL({
61 provider: 'github',
62 owner: 'ChatLab',
63 repo: 'ChatLab',
64 })
65 logger.info('[Update] Switched to GitHub fallback source')
66}
67
68/**
69 * 重置为默认更新源(R2 优先)

Callers 1

checkUpdateFunction · 0.85

Calls 2

setFeedURLMethod · 0.80
infoMethod · 0.65

Tested by

no test coverage detected