1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Update readme.md

[ciskip]
This commit is contained in:
Ted John
2016-08-25 23:58:43 +01:00
parent 76b0e3158b
commit ea2e5f3273

View File

@@ -48,7 +48,8 @@ OpenRCT2 requires original files of RollerCoaster Tycoon 2 to play. It can be bo
### Windows: ### Windows:
- Vista / 7 / 8 / 10 - Vista / 7 / 8 / 10
- Visual Studio 2015 Update 2 (Enterprise / Professional / [Community (Free)](https://www.visualstudio.com/products/visual-studio-community-vs)) - Visual Studio 2015 Update 2 (Enterprise / Professional / [Community (Free)](https://www.visualstudio.com/products/visual-studio-community-vs))
- [Powershell 4.0](http://social.technet.microsoft.com/wiki/contents/articles/21016.how-to-install-windows-powershell-4-0.aspx). - [7-Zip](http://www.7-zip.org/) (for deployment only)
- [NSIS](http://nsis.sourceforge.net/) (for deployment only)
### Mac: ### Mac:
- [Homebrew](http://brew.sh) - [Homebrew](http://brew.sh)
@@ -66,13 +67,18 @@ All libs listed here (bar cmake) required in 32 bit variants.
## 3.2 Compiling and running ## 3.2 Compiling and running
### Windows: ### Windows:
1. Check out the repository. This can be done using [GitHub Desktop](https://desktop.github.com) or [other tools](https://help.github.com/articles/which-remote-url-should-i-use). 1. Check out the repository. This can be done using [GitHub Desktop](https://desktop.github.com) or [other tools](https://help.github.com/articles/which-remote-url-should-i-use).
2. Open a new Developer Command Prompt for VS2015, run PowerShell and then navigate to the repository. 2. Open a new Developer Command Prompt for VS2015, then navigate to the repository (e.g. `cd C:\GitHub\OpenRCT2`).
3. Run the ```setenv.ps1``` script in the repository to set up your PowerShell environment for OpenRCT2 development. This will warn you of any missing applications required to build OpenRCT2. 3. Run `msbuild openrct2.proj /t:build`.
4. Run ```install``` to download the required dependencies to build OpenRCT2.
5. Run ```build all``` to build all the required components for OpenRCT2.
6. Run ```run``` to run OpenRCT2.
These PowerShell scripts are stored in ```.\scripts\ps``` and have parameters. Once you have used the build script once, further development can be done within Visual Studio by opening ```openrct2.sln```. The build scripts have several commands allowing you to rebuild certain components such ```g2.dat``` or language files. Once you have ran msbuild once, further development can be done within Visual Studio by opening `openrct2.sln`.
Other examples:
```
msbuild openrct2.proj /t:clean
msbuild openrct2.proj /t:rebuild /p:configuration=release /p:platform=x64
msbuild openrct2.proj /t:g2
msbuild openrct2.proj /t:PublishPortable
```
### Mac: ### Mac:
We support native builds for macOS (limited to i386 only for now). We support native builds for macOS (limited to i386 only for now).