···1313- [Contributing](#contributing)
1414- [Build instructions](#build-instructions)
1515 - [Windows](#windows)
1616- - [with Visual Studio 2017](#with-visual-studio-2017)
1616+ - [Windows XP / Windows 7 32-bit (x86)](#windows-xp--windows-7-32-bit-x86)
1717+ - [Windows 10 / 11 64-bit (x64)](#windows-10--11-64-bit-x64)
1718 - [with MinGW](#with-mingw)
1819 - [Linux](#linux)
1920 - [Ubuntu 22.04 (Jammy Jellyfish)](#ubuntu-2204-jammy-jellyfish)
···9192# Build instructions
92939394## Windows
9494-### with Visual Studio 2017
9595-- install `Visual Studio 2017`
9696-- install `git`
9797-- install `Ruby` (you can use [RubyInstaller](https://rubyinstaller.org/))
9898-- run following commands in `cmd`
9595+9696+### Windows XP / Windows 7 32-bit (x86)
9797+9898+The build process has been tested on Windows 11 64-bit (x64); all this should run on Windows 7 SP1 32-bit (x86) as well. This guide assumes you're running an elevated command prompt.
9999+100100+- Install [Git](https://git-scm.com/download/win), [CMake](https://cmake.org/download/), [Visual Studio 2019 Build Tools](https://winstall.app/apps/Microsoft.VisualStudio.2019.BuildTools) and [Ruby+Devkit 2.7.8 x86](https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.8-1/rubyinstaller-devkit-2.7.8-1-x86.exe)
101101+- Install the neccessary dependencies within VS2019:
102102+ - Launch "Visual Studio Installer"
103103+ - Click "Modify"
104104+ - Check "Desktop Development with C++"
105105+ - Go to "Individual components"
106106+ - Search for "v141"
107107+ - Install:
108108+ - C++ Windows XP Support for VS 2017 (v141) tools [Deprecated]
109109+ - MSVC v141 - VS 2017 C++ x64/x86 build tools (v14.16)
110110+ - Click "Modify"
111111+- Run `ridk install` with options `1,3` to set up [MSYS2](https://www.msys2.org/) and development toolchain
112112+- Add MSYS2's [`gcc`](https://gcc.gnu.org/) at `C:\Ruby27\msys32\mingw32\bin` to your `$PATH` [(guide)](https://www.java.com/en/download/help/path.html#:~:text=your%20java%20code.-,Windows%207,-From%20the%20desktop)
113113+114114+- Open a new elevated prompt and run the following commands:
115115+99116```
100100-git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build
101101-cmake -G "Visual Studio 15 2017 Win64" ..
117117+git clone --recursive https://github.com/nesbox/TIC-80 && cd .\TIC-80\build
118118+cmake -G "Visual Studio 16 2019" -A Win32 -T v141_xp -DCMAKE_BUILD_TYPE=MinSizeRel ..
119119+cmake --build . --parallel
102120```
103103-- open `TIC-80.sln` and build
104104-- enjoy :)
121121+122122+You'll find `tic80.exe` in `TIC-80\build\bin`.
123123+124124+### Windows 10 / 11 64-bit (x64)
125125+126126+This guide assumes you're running PowerShell with an elevated prompt.
127127+128128+- Install [Git](https://git-scm.com/download/win), [CMake](https://cmake.org/download/), [Visual Studio 2019 Build Tools](https://winstall.app/apps/Microsoft.VisualStudio.2019.BuildTools) and [Ruby+Devkit 2.7.8 x64](https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.8-1/rubyinstaller-devkit-2.7.8-1-x64.exe) manually or with [WinGet](https://github.com/microsoft/winget-cli):
129129+```
130130+winget install Git.Git Kitware.CMake Microsoft.VisualStudio.2019.BuildTools RubyInstallerTeam.RubyWithDevKit.2.7
131131+```
132132+- Install the neccessary dependencies within VS2019:
133133+ - Launch "Visual Studio Installer"
134134+ - Click "Modify"
135135+ - Check "Desktop Development with C++"
136136+ - Make sure the following components are installed:
137137+ - Windows 10 SDK (10.0.19041.0)
138138+ - MSVC v142 - VS 2019 C+ + x64/x86 build tools (Latest)
139139+ - Click "Modify"
140140+- Run `ridk install` with options `1,3` to set up [MSYS2](https://www.msys2.org/) and development toolchain
141141+- Add MSYS2's [`gcc`](https://gcc.gnu.org/) at `C:\Ruby27-x64\msys64\mingw64\bin` to your `$PATH` [manually](https://www.java.com/en/download/help/path.html#:~:text=Mac%20OS%20X.-,Windows,-Windows%2010%20and) or with the following PowerShell command:
142142+143143+```
144144+[Environment]::SetEnvironmentVariable('Path', $env:Path + ';C:\Ruby27-x64\msys64\mingw64\bin', [EnvironmentVariableTarget]::Machine)
145145+```
146146+147147+- Open a new elevated prompt and run the following commands:
148148+149149+```
150150+git clone --recursive https://github.com/nesbox/TIC-80 && cd .\TIC-80\build
151151+cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=MinSizeRel ..
152152+cmake --build . --parallel
153153+```
154154+155155+You'll find `tic80.exe` in `TIC-80\build\bin`.
105156106157### with MinGW
107158- install `mingw-w64` (http://mingw-w64.org) and add `.../mingw/bin` path to the *System Variables Path*