Skip to content

Commit 5a2f569

Browse files
committed
Update README.md
1 parent b2ad4f7 commit 5a2f569

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,26 @@ Download and install the [EditorConfig](https://visualstudiogallery.msdn.microso
4040
4. Execute: `win-install-data.bat`
4141

4242
#### Linux
43-
1. Execute `utils/premake5_x86 gmake` (32-bit OS) or `utils/premake5_x64 gmake` (64-bit OS)
43+
Building MTA:SA is only supported on 64-bit Linux OSes. You can however cross-compile a 32-bit version using _gcc-multilib_.
44+
1. Execute `utils/premake5 gmake`
4445
2. `cd Build`
4546
3. Run `make config=release_x86` to build the 32-bit server and `make config=release_x64` to build the 64-bit server (or use `debug` instead of `release` to run an unoptimized debug build)
4647
4. Execute `linux-install-data.sh` (optional step)
4748

49+
#### Linux: Docker Build Environment
50+
If you have problems resolving the required dependencies or want maximum compatibility, you can use our dockerized build environment that ships all needed dependencies. We also use this environment to build the official binaries.
51+
52+
64-bit target:
53+
```
54+
docker run -it -v `pwd`:/mtasa-blue multitheftauto/mtasa-blue
55+
```
56+
57+
32-bit target:
58+
```
59+
docker run -it -v `pwd`:/mtasa-blue -e BUILD_BITS=32 multitheftauto/mtasa-blue
60+
```
61+
If the current directory is a valid git repository clone, it will use this as the build source. If not, it will create a (shallow) clone. After compiling, you will find the resulting binaries in `./Bin`.
62+
4863
### Premake FAQ
4964
#### How to add new C++ source files?
5065
Just execute `win-create-projects.bat`.

0 commit comments

Comments
 (0)