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

Function manualCheckForUpdates

apps/desktop/main/update.ts:285–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283 * 手动检查时,即使是预发布版本也会显示更新弹窗
284 */
285const manualCheckForUpdates = () => {
286 // 配置代理
287 configureUpdateProxy()
288
289 isManualCheck = true // 手动检查
290 isFirstShow = false // 手动检查时,无论结果都显示提示
291 resetToDefaultSource() // 重置为默认更新源(R2 优先)
292
293 autoUpdater.checkForUpdates().catch((err) => {
294 console.log('[Update] Manual update check failed:', err)
295 logger.error(`[Update] Manual update check failed: ${err}`)
296 })
297}
298
299/**
300 * 模拟更新弹窗(仅用于开发测试)

Callers 2

registerWindowHandlersFunction · 0.90
update.test.tsFile · 0.85

Calls 4

configureUpdateProxyFunction · 0.85
resetToDefaultSourceFunction · 0.85
checkForUpdatesMethod · 0.80
errorMethod · 0.65

Tested by

no test coverage detected