jcefbuild/compile_windows.bat
2021-11-05 02:52:19 +01:00

20 lines
590 B
Batchfile
Executable File

@echo off
if ("%2"=="") ( ^
echo "Usage: compile_windows.bat <architecture> <buildType>" && ^
echo "" && ^
echo "architecture: the target architecture to build for. Architectures are either 386 or amd64." && ^
echo "buildType: either Release or Debug" && ^
exit 1 ^
)
:: Execute build with windows Dockerfile
docker build -t jcefbuild --file DockerfileWindows .
:: Execute run with windows Dockerfile
if not exist "jcef" mkdir "jcef"
if not exist "out" mkdir "out"
docker run -v jcef:jcef -v out:out -e TARGETARCH=%1 -e BUILD_TYPE=%2 jcefbuild
dir jcef
dir out