From 07c3c3873c55609db2a09c194afdddb0e1ae20e7 Mon Sep 17 00:00:00 2001 From: yunchan8804 Date: Wed, 15 Apr 2026 21:13:23 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci):=20Ollama=20=EB=8B=A4=EC=9A=B4=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=EB=A5=BC=20curl.exe=EB=A1=9C=20=EC=A0=84=ED=99=98=20?= =?UTF-8?q?=E2=80=94=20IWR=20=EB=8C=80=EC=9A=A9=EB=9F=89=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20hang=20=ED=95=B4=EC=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/desktop/scripts/download-ollama.ps1 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/desktop/scripts/download-ollama.ps1 b/apps/desktop/scripts/download-ollama.ps1 index ba0d007..2544665 100644 --- a/apps/desktop/scripts/download-ollama.ps1 +++ b/apps/desktop/scripts/download-ollama.ps1 @@ -23,11 +23,15 @@ if (Test-Path (Join-Path $DEST_DIR "ollama.exe")) { if (Test-Path $TEMP_ZIP) { Remove-Item -Force $TEMP_ZIP } Write-Host "Downloading: $OLLAMA_URL" -try { - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 - Invoke-WebRequest -Uri $OLLAMA_URL -OutFile $TEMP_ZIP -UseBasicParsing -} catch { - Write-Host "Auto-download failed: $_" -ForegroundColor Red +# curl.exe (Win10+ native) handles GitHub redirects, progress output, large files +# better than Invoke-WebRequest. -L follow redirects, --fail error on HTTP >=400, +# --retry 3, --max-time 1800 (30min), --progress-bar human readable. +$curlExe = "$env:SystemRoot\System32\curl.exe" +if (-not (Test-Path $curlExe)) { $curlExe = "curl.exe" } +& $curlExe -L --fail --retry 3 --max-time 1800 --progress-bar ` + -o $TEMP_ZIP $OLLAMA_URL +if ($LASTEXITCODE -ne 0) { + Write-Host "curl download failed with exit code $LASTEXITCODE" -ForegroundColor Red Write-Host "" Write-Host "=== Manual install ===" -ForegroundColor Yellow Write-Host "Download ollama-windows-amd64.zip from:"