@@ -15,26 +15,25 @@ if /I "%ARCH%"=="x64" (
15
15
:: ----------------------------------------------------------------------
16
16
:: Download URLs, local dirs and versions
17
17
:: Lua
18
- set LUA_VER = 53
19
- set LUA32_URL = http://downloads.sourceforge.net/luabinaries/lua-5.3.2_Win32_dllw4_lib.zip
20
- set LUA64_URL = http://downloads.sourceforge.net/luabinaries/lua-5.3.2_Win64_dllw4_lib.zip
21
- set LUA_URL = !LUA%BIT%_URL!
18
+ set LUA_VER = 54
19
+ set LUA_RELEASE = 5.4.2
20
+ set LUA_URL = https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE% _Win%BIT% _dllw6_lib.zip
22
21
set LUA_DIR = C:\Lua
23
22
:: Perl
24
- set PERL_VER = 528
25
- set PERL32_URL = http://strawberryperl.com/download/5.28.0.1/strawberry-perl-5.28.0.1-32bit-portable.zip
26
- set PERL64_URL = http://strawberryperl.com/download/5.28.0.1/strawberry-perl-5.28.0.1-64bit-portable.zip
27
- set PERL_URL = !PERL%BIT%_URL!
23
+ set PERL_VER = 532
24
+ set PERL_RELEASE = 5.32.1.1
25
+ set PERL_URL = https://strawberryperl.com/download/%PERL_RELEASE% /strawberry-perl-%PERL_RELEASE% -%BIT% bit-portable.zip
28
26
set PERL_DIR = C:\Strawberry\perl
29
27
:: Python2
30
28
set PYTHON_VER = 27
31
29
set PYTHON_32_DIR = C:\python%PYTHON_VER%
32
30
set PYTHON_64_DIR = C:\python%PYTHON_VER% -x64
33
31
set PYTHON_DIR = !PYTHON_%BIT%_DIR!
34
32
:: Python3
35
- set PYTHON3_VER = 39
36
- set PYTHON3_32_URL = https://www.python.org/ftp/python/3.9.0/python-3.9.0.exe
37
- set PYTHON3_64_URL = https://www.python.org/ftp/python/3.9.0/python-3.9.0-amd64.exe
33
+ set PYTHON3_VER = 310
34
+ set PYTHON3_RELEASE = 3.10.0
35
+ set PYTHON3_32_URL = https://www.python.org/ftp/python/%PYTHON3_RELEASE% /python-%PYTHON3_RELEASE% .exe
36
+ set PYTHON3_64_URL = https://www.python.org/ftp/python/%PYTHON3_RELEASE% /python-%PYTHON3_RELEASE% -amd64.exe
38
37
set PYTHON3_URL = !PYTHON3_%BIT%_URL!
39
38
set PYTHON3_32_DIR = C:\python%PYTHON3_VER%
40
39
set PYTHON3_64_DIR = C:\python%PYTHON3_VER% -x64
@@ -49,10 +48,12 @@ set RACKET64_DIR=%PROGRAMFILES%\Racket
49
48
set RACKET_DIR = !RACKET%BIT%_DIR!
50
49
set MZSCHEME_VER = %RACKET_VER%
51
50
:: Ruby
52
- set RUBY_VER = 24
53
- set RUBY_API_VER_LONG = 2.4.0
54
- set RUBY_BRANCH = ruby_2_4
55
- set RUBY_URL = https://github.com/ruby/ruby/archive/%RUBY_BRANCH% .zip
51
+ set RUBY_VER = 30
52
+ set RUBY_API_VER_LONG = 3.0.0
53
+ set RUBY_BRANCH = ruby_3_0
54
+ set RUBY_RELEASE = 3.0.2-1
55
+ set RUBY_SRC_URL = https://github.com/ruby/ruby/archive/%RUBY_BRANCH% .zip
56
+ set RUBY_URL = https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-%RUBY_RELEASE% /rubyinstaller-%RUBY_RELEASE% -%ARCH% .7z
56
57
set RUBY32_DIR = C:\Ruby%RUBY_VER%
57
58
set RUBY64_DIR = C:\Ruby%RUBY_VER% -x64
58
59
set RUBY_DIR = !RUBY%BIT%_DIR!
@@ -129,18 +130,22 @@ start /wait downloads\tcl.exe /extract:c:\ActiveTclTemp /exenoui /exenoupdates /
129
130
for /d %%i in (c:\ActiveTclTemp\*) do move %%i %TCL_DIR%
130
131
copy %TCL_DIR% \bin\%TCL_DLL% vim\src\
131
132
132
- :: Python 3.9
133
+ :: Python 3
133
134
call :downloadfile %PYTHON3_URL% downloads\python3.exe
134
135
cmd /c start /wait downloads\python3.exe /quiet TargetDir=%PYTHON3_DIR% Include_pip=0 Include_tcltk=0 Include_test=0 Include_tools=0 AssociateFiles=0 Shortcuts=0 Include_doc=0 Include_launcher=0 InstallLauncherAllUsers=0
135
136
136
137
:: Ruby
138
+ :: Download RubyInstaller binary
139
+ call :downloadfile %RUBY_URL% downloads\ruby.7z
140
+ 7z x downloads\ruby.7z -oC:\ > nul || exit 1
141
+ move C:\rubyinstaller-%RUBY_RELEASE% -%ARCH% %RUBY_DIR% > nul || exit 1
137
142
:: RubyInstaller is built by MinGW, so we cannot use header files from it.
138
143
:: Download the source files and generate config.h for MSVC.
139
144
rem git clone https://github.com/ruby/ruby.git -b %RUBY_BRANCH% --depth 1 -q ../ruby
140
- call :downloadfile %RUBY_URL % downloads\ruby .zip
145
+ call :downloadfile %RUBY_SRC_URL % downloads\ruby_src .zip
141
146
:: Extract the files only we needed to reduce the building time.
142
147
:: We need to use `^^` to escape `!` because we enable delayed expansion.
143
- 7z x downloads\ruby .zip */bin */enc/Makefile.in */win32 */common.mk -ir^^! version.h -xr^^! README.* -xr^^! */win32/*.c -xr^^! */win32/*.h -o.. > nul || exit 1
148
+ 7z x downloads\ruby_src .zip */bin */enc/Makefile.in */win32 */common.mk -ir^^! version.h -xr^^! README.* -xr^^! */win32/*.c -xr^^! */win32/*.h -o.. > nul || exit 1
144
149
move ..\ruby-%RUBY_BRANCH% ..\ruby > nul || exit 1
145
150
pushd ..\ruby
146
151
call win32\configure.bat
0 commit comments