|
1 | 1 | # Stationhub |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
| 2 | +[](https://github.com/unitystation/stationhub/actions/workflows/dotnetcore.yml) |
| 3 | +[](https://app.codacy.com/gh/unitystation/stationhub) |
| 4 | +[](https://aur.archlinux.org/packages/stationhub) |
| 5 | +[](https://flathub.org/apps/details/org.unitystation.StationHub) |
| 6 | +[](https://discord.com/invite/tFcTpBp) |
7 | 7 |
|
8 | 8 | This is the official launcher for Unitystation, it handles account creation, downloading, updating, and server joining. |
9 | 9 |
|
10 | 10 | ## Tech-stack |
11 | | -It is cross-platform using .Net 6.0 as the runtime and Avalonia for the UI. |
| 11 | +It is cross-platform using .NET 6 as the runtime and [Avalonia MVVM](https://docs.avaloniaui.net/guides/basics/mvvm) for the UI. |
| 12 | + |
| 13 | +## Building |
| 14 | +You'll need [git](https://git-scm.com) and the [.NET 6 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) installed. |
| 15 | + |
| 16 | +To check out the repo you can run the following in the directory you'd like to save the repo locally: |
| 17 | +``` |
| 18 | +git clone https://github.com/unitystation/stationhub.git |
| 19 | +``` |
| 20 | + |
| 21 | +Once checked out you should be able to run the following in the directory with the `UnitystationLauncher.sln` file: |
| 22 | +``` |
| 23 | +dotnet build |
| 24 | +``` |
| 25 | + |
| 26 | +Dependencies should be automatically restored by NuGet during the build process. |
| 27 | + |
| 28 | +To test the build you just ran, you can do the following: |
| 29 | +``` |
| 30 | +dotnet run --project ./UnitystationLauncher/UnitystationLauncher.csproj |
| 31 | +``` |
| 32 | + |
| 33 | +## Contributing |
| 34 | +Before opening your pull request please ensure there are no compile warnings for any new code that you've added. |
| 35 | + |
| 36 | +.NET format is also enforced by the build pipeline, so before pushing your code you can run the following to make sure your code is formatted in the standard way: |
| 37 | +``` |
| 38 | +dotnet format |
| 39 | +``` |
| 40 | + |
| 41 | +Unit Tests are a work in progress currently, however once they are included you'll be able to run them with: |
| 42 | +``` |
| 43 | +dotnet test |
| 44 | +``` |
| 45 | + |
| 46 | +You'll want to ensure that existing tests pass, and make changes and additional tests where needed for your change. |
| 47 | +Also make sure to check out the [Code Style Guide](https://github.com/unitystation/stationhub/blob/develop/docs/code-style-guide.md) for the project. |
0 commit comments