* 切换到 GitHub 源(备用更新源)
()
| 56 | * 切换到 GitHub 源(备用更新源) |
| 57 | */ |
| 58 | function 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 优先) |
no test coverage detected