Add MacOS support - #713
Merged
Merged
Conversation
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
Contributor
|
Could you retarget the /develop branch please |
Contributor
Author
Sure! Done! |
ArchangelWTF
approved these changes
Dec 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Disclaimer: I am not a .NET developer, so please excuse my lack of knowledge in this domain. There are probably more things to be added to this PR, so any guidance on the remaining changes will be very much appreciated!
Prerequisites:
Build
In order to build the
SPTarkov.ServerMacOS native build locally, you can run the following command from the root directory (make sure to have my changes from this PR included):The above command was adapted from the
build-sharp.yamlGitHub action.Start server
You should now hopefully have the following directory generated:
SPTarkov.Server/bin/Release/net9.0/osx-arm64/publish, if you do, you should be good to go!cd ./SPTarkov.Server/bin/Release/net9.0/osx-arm64/publish ./SPT.Server.MacHappy playing!
Validation
✅ MacOS Server executable and it's dependencies are successfully compiled
✅ Server starts and runs natively on MacOS Tahoe 26.2.0 (check commit hash: "7830d62c")
✅ Game connects successfully to the server (check commit hash: "7830d62c")
✅ Full gameplay verified - raids, hideout, settings, etc.
Considerations
I would love to be able to run the server from a different laptop as I have a spare Mac and could offload some of the resources used for keeping the server alive. However, the game isn't able to connect to my other Mac's IP when specified in Launcher's Dev URL option. I am probably doing something, so some guidance will be much appreciated!If you need me to open a PR also in https://github.com/sp-tarkov/build repo to configure the MacOS CI/CD builds, please let me know. I will be happy to contribute!