I didn't test it on linux or Mac because I haven't. But when you build a game in unity is showing you can play it it on Windows Linux and Mac.
It's easy to miss in Unity, but in the Build Settings window you have to change the "Target Platform" and build each executable separately.
Thanks 👌