Skip to content

Commit b368f7a

Browse files
committed
[windows] Switch ICU4C from SourceForge to GitHub.
Use GitHub download instead of SourceForge for ICU4C binary package, since SF fails from time to time and the build fails because of it. Also remove the usage of -z, since Community CI deletes the previous file anyway, so no point in checking for a cached copy, when the only thing that would happen is an annoying message in the build logs.
1 parent 7309868 commit b368f7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/build-windows.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ setlocal enableextensions enabledelayedexpansion
2828
set icu_version_major=64
2929
set icu_version_minor=2
3030
set icu_version=%icu_version_major%_%icu_version_minor%
31-
set icu_version_dotted=%icu_version_major%.%icu_version_minor%
31+
set icu_version_dashed=%icu_version_major%-%icu_version_minor%
3232

3333
set "exitOnError=|| (exit /b)"
3434
set current_directory=%~dp0
@@ -101,7 +101,7 @@ endlocal
101101
setlocal enableextensions enabledelayedexpansion
102102

103103
set file_name=icu4c-%icu_version%-Win64-MSVC2017.zip
104-
curl -L -O -z %file_name% "http://download.icu-project.org/files/icu4c/%icu_version_dotted%/%file_name%" %exitOnError%
104+
curl -L -O "https://github.com/unicode-org/icu/releases/download/release-%icu_version_dashed%/%file_name%" %exitOnError%
105105
:: unzip warns about the paths in the zip using slashes, which raises the
106106
:: errorLevel to 1. We cannot use exitOnError, and have to ignore errors.
107107
unzip -o %file_name% -d "%source_root%\icu-%icu_version%"

0 commit comments

Comments
 (0)