在 Windows 计算机上安装 Mac 和 Linux
我想知道是否有办法使用严格的 Windows 机器为 Mac 和 Linux 创建安装?我正在开发一个程序,我将尝试通过使用 Mono 项目 (C#) 在所有三个平台上提供该程序,并且需要为每个平台创建安装程序。鉴于我对非 Windows 平台几乎完全无知(我知道这是一个可怕的问题,我也在努力解决这个问题,但这与问题无关),我什至不知道从哪里开始寻找信息。对于 Windows,如果有影响的话,我将使用 WiX 来制作 MSI。
I was wondering if there is anyway to create an installation for Mac and Linux using a strictly windows machine? I am developing a program that I will be attempting to make available on all three platforms through use of the Mono project (C#) and need to create installers for each one. Given my almost complete ingnorance (this is a terrible I know, and I am working on rememdying this problem as well, but that is not really relevent to the question) about the non-windows platforms I am not even sure where to start looking for information. For Windows I will be making the MSI using WiX if that makes a difference.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您没有提及您是否准备支付产品费用。有一些多平台安装程序,例如 InstallAnywhere,它曾经有一个精简的免费版本,但现在它们似乎主要是商业和商业版。专有。(链接到维基百科列表)
You don't mention whether you are prepared to pay for a product or not. There are a few multi platform installers like InstallAnywhere which used to have a cut down free version but they now seem to be predominantly commercial & proprietary.(link to wikipedia list)
InstallJammer 可能值得一看。
http://installjammer.com/
功能丰富,易于使用,Windows 和 Linux。尚无 Mac 支持,但他们正在努力。
InstallJammer might be worth a look.
http://installjammer.com/
Lots of features, easy to use, windows and linux. No mac support yet, but they're working on it.
如果您以源代码形式分发程序,那么 CMake 是一个很好的工具,可以自动检测库并生成正确的源代码在您提到的所有平台上构建内容(makefile、XCode 项目、Visual Studio 项目等)。
要创建用于分发的二进制文件并在其他操作系统中测试您的程序,也许最简单的事情就是在 VirtualBox 或类似的东西?我在 Linux 中进行开发,但如果我想测试我的跨平台程序在 Windows 中是否正常工作,我会在 VirtualBox 中运行该操作系统的一个实例并进行尝试。
If you're distributing your program in source form, then CMake is a great tool to automatically detect libraries and generate the proper source building stuff (makefiles, XCode projects, Visual Studio projects, etc.) on all the platforms you mention.
For creating binaries for distribution, and testing your program in other OSes, perhaps the simplest thing is just to run the other OSes in VirtualBox, or something similar? I develop in Linux, but if I want to test if my cross-platform program works properly in Windows, I run an instance of that OS in VirtualBox and try it out.
我听说 MonoTools 有某种向导,可以为各种平台生成安装程序,但价格为 99 美元。 MonoTools 是 Visual Studio 的扩展。
I am told MonoTools has some kind of wizard for generating installers for various platforms, but it is $99. MonoTools is an extension to Visual Studio.
你可以看一下 InstallBuilder 它是一个商业产品,但我们为开源项目提供免费许可证,并且还有折扣适用于小公司和微型独立软件开发商(如果感兴趣,请联系我们)。我们有几家公司销售 Mono 产品。
You can take a look at InstallBuilder It is a commercial product but we offer free licenses for Open Source projects and also have discounts for small companies and microISVs (just ping us if it is of interest). We have several companies which ship Mono products.