mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 21:05:51 +00:00
feat: 关闭自动更新
This commit is contained in:
@@ -1736,6 +1736,10 @@ export function getAutoUpdaterDisabledReason(): AutoUpdaterDisabledReason | null
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
return { type: 'development' }
|
||||
}
|
||||
// 本项目默认关闭自动更新;通过 ENABLE_AUTOUPDATER=1 显式开启
|
||||
if (!isEnvTruthy(process.env.ENABLE_AUTOUPDATER)) {
|
||||
return { type: 'config' }
|
||||
}
|
||||
if (isEnvTruthy(process.env.DISABLE_AUTOUPDATER)) {
|
||||
return { type: 'env', envVar: 'DISABLE_AUTOUPDATER' }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user