HOW TO BUILD WINDOWS ON LINUX using Dockerfile:
-----------------------------------------------

This is quick description how to build ezquake for Windows under Linux in Docker.

1) Install Docker or something similar
2) Create docker image to be able to run compilation tools:

  docker build --no-cache -t ezq:dev-focal-cross -f Dockerfile.focal-cross .

3) Run command to generate a binary for current linux platform:

  docker run -it -v $(pwd):/ezquake-source --user "$(id -u):$(id -g)" ezq:dev-focal-cross make -j$(nproc) clean
  docker run -it -v $(pwd):/ezquake-source --user "$(id -u):$(id -g)" ezq:dev-focal-cross dos2unix *.sh
  docker run -it -v $(pwd):/ezquake-source --user "$(id -u):$(id -g)" -e EZ_CONFIG_FILE=.config_windows ezq:dev-focal-cross make -j$(nproc) all
  docker run -it -v $(pwd):/ezquake-source --user "$(id -u):$(id -g)" -e EZ_CONFIG_FILE=.config_windows ezq:dev-focal-cross make strip


4) As a result you should have a for example: `ezquake.exe` which can be used with `nquake`, for example:

  cp -f ezquake.exe c:\nquake
  cd c:\nquake
  ezquake.exe


TODO:
---------------------------------------
- multi-arch
- other distros (centos, debian, older distros)
- using kaniko https://github.com/GoogleContainerTools/kaniko
