增加github加速

This commit is contained in:
user123
2026-01-30 01:04:12 +08:00
parent 9e39a61977
commit 2747d23dfe
3 changed files with 34 additions and 1 deletions

View File

@@ -709,6 +709,11 @@ func runInstallFlowCmd() tea.Msg {
return actionResultMsg{err: fmt.Errorf("git 安装失败: %v", err)}
}
err = sys.ConfigureGitProxy()
if err != nil {
return actionResultMsg{err: fmt.Errorf("git 代理配置失败: %v", err)}
}
err = sys.ConfigureNpmMirror()
if err != nil {
return actionResultMsg{err: fmt.Errorf("npm 配置失败: %v", err)}