I've been developing a C# command line tool using Mono on a Mac (in Xamarin), with the intention that it should be straightforwardly cross-platform.
I'm now ready to release and open-source the project, and I want to make it as easy as possible for users on both Windows and Mac to start using the tool, without necessarily having to install Mono/Xamarin and build the project themselves. Therefore, I'd like to include binary releases on github.
For Mac: I already found that it's possible to make a native executable that includes the Mono runtime using mkbundle
with the --static
option enabled.
For Windows: What's the equivalent? And is it possible to cross-compile a native command line tool for Windows on a Mac, so that I don't have to use two different machines into to make a binary release?
Again, if at all possible, I'd like to make a Windows release that has no dependencies - I don't want the user to have to download Cygwin, Mono, Xamarin, Visual Studio, etc.