Skip to content

Commit 84815c8

Browse files
committed
[windows] Update ICU version to 64.2.
Improve a little the build script to not have to change the version in two places of the URL.
1 parent 46f130a commit 84815c8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

utils/build-windows.bat

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525

2626
setlocal enableextensions enabledelayedexpansion
2727

28-
set icu_version=63_1
28+
set icu_version_major=64
29+
set icu_version_minor=2
30+
set icu_version=%icu_version_major%_%icu_version_minor%
31+
set icu_version_dotted=%icu_version_major%.%icu_version_minor%
2932

3033
set "exitOnError=|| (exit /b)"
3134
set current_directory=%~dp0
@@ -87,7 +90,7 @@ endlocal
8790
setlocal enableextensions enabledelayedexpansion
8891

8992
set file_name=icu4c-%icu_version%-Win64-MSVC2017.zip
90-
curl -L -O -z %file_name% "http://download.icu-project.org/files/icu4c/63.1/%file_name%" %exitOnError%
93+
curl -L -O -z %file_name% "http://download.icu-project.org/files/icu4c/%icu_version_dotted%/%file_name%" %exitOnError%
9194
:: unzip warns about the paths in the zip using slashes, which raises the
9295
:: errorLevel to 1. We cannot use exitOnError, and have to ignore errors.
9396
unzip -o %file_name% -d "%source_root%\icu-%icu_version%"

0 commit comments

Comments
 (0)