File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ @ echo off
2+ setlocal
3+
4+ set RELEASE_VERSION = 20261026
5+
6+ set JOBS = 8
7+ set SCONS = python3 -m SCons
8+ set ZIP7 = " C:\Program Files\7-Zip\7z"
9+ set SAIGO_DIR = toolchain\saigosdk-windows-amd64_20260925
10+
11+ :: Must set MSYS_DIR on command line. The MinGW distro doesn't really have to be MSYS
12+ :: but this makes it more convenient to set just one variable.
13+ set MINGW_AMD64 = " %MSYS_DIR% \mingw64"
14+ set MINGW_I686 = " %MSYS_DIR% \mingw32"
15+
16+ %MINGW_AMD64% \bin\as --version
17+ %MINGW_I686% \bin\as --version
18+ %ZIP7%
19+ python3 -m pip freeze
20+
21+ rd /S /Q scons-out release
22+
23+ git log -1
24+ git status
25+
26+ %SCONS% -j%JOBS% --mode=opt-win,nacl_irt saigo_newlib_dir=%SAIGO_DIR% mingw_dir=%MINGW_AMD64% platform=x86-64 saigo=1 --no-clang werror=0 sysinfo=0 sel_ldr irt_core || exit /B
27+ %SCONS% -j%JOBS% --mode=opt-win,nacl_irt saigo_newlib_dir=%SAIGO_DIR% mingw_dir=%MINGW_I686% platform=x86-32 saigo=1 --no-clang werror=0 sysinfo=0 sel_ldr irt_core || exit /B
28+
29+ mkdir release
30+ cd release
31+
32+ set TGT64 = naclruntime-windows-amd64_%RELEASE_VERSION%
33+ set TGT32 = naclruntime-windows-i686_%RELEASE_VERSION%
34+ mkdir %TGT64%
35+ mkdir %TGT32%
36+ copy ..\scons-out\opt-win-x86-64\staging\sel_ldr.exe %TGT64%
37+ copy ..\scons-out\opt-win-x86-32\staging\sel_ldr.exe %TGT32%
38+ copy ..\scons-out\nacl_irt-x86-64\staging\irt_core.nexe %TGT64%
39+ copy ..\scons-out\nacl_irt-x86-32\staging\irt_core.nexe %TGT32%
40+ %ZIP7% a -tzip -mx=9 %TGT64% .zip %TGT64% || exit /B
41+ %ZIP7% a -tzip -mx=9 %TGT32% .zip %TGT32% || exit /B
You can’t perform that action at this time.
0 commit comments