Increase default network timeout in launcher

https://forums.ankiweb.net/t/the-desktop-anki-app-cant-launch/64425/4
This commit is contained in:
Damien Elmes 2025-07-24 20:33:16 +07:00
parent 00bc0354c9
commit c74a97a5fa

View file

@ -292,6 +292,10 @@ fn handle_version_install_or_update(state: &State, choice: MainMenuChoice) -> Re
command command
.env("UV_CACHE_DIR", &state.uv_cache_dir) .env("UV_CACHE_DIR", &state.uv_cache_dir)
.env("UV_PYTHON_INSTALL_DIR", &state.uv_python_install_dir) .env("UV_PYTHON_INSTALL_DIR", &state.uv_python_install_dir)
.env(
"UV_HTTP_TIMEOUT",
std::env::var("UV_HTTP_TIMEOUT").unwrap_or_else(|_| "180".to_string()),
)
.args(["sync", "--upgrade", "--managed-python", "--no-config"]); .args(["sync", "--upgrade", "--managed-python", "--no-config"]);
// Add python version if .python-version file exists // Add python version if .python-version file exists