1

我有一个在 Linux 和 Windows 中运行良好的 C# 应用程序。现在我想为 Mac OS 制作一个安装包,但我没有运行任何东西来开发/测试它。该软件是开源的,所以我不想花钱购买另一台笔记本电脑来测试它。

有没有一种方法可以为这个 C# 应用程序创建某种安装程序/包,而实际上不需要 Mac?我什.deb至为 Linux 制作了一个软件包。不能以某种方式转换它吗?

4

1 回答 1

0

It depends on how fancy you want to get with the installer. I'd start with something simple like building a package for Homebrew.

That's all command-line, though. If you think your Mac users would be unhappy installing an running from the command-line, you'll have to look into more sophisticated solutions. Mac GUI applications are traditionally built into .app bundles. Unfortunately for you, C# does not have lots of support for cross-compiling to the Mac. It's possible, but it's going to take a lot of trial and error, which will be way more frustrating without a test machine to see if you're doing it right.

You might try CPack (part of CMake). CMake doesn't really do C# (otherwise it'd be perfect for you), but you may be able to point CPack at the completed binaries and get it to bundle them up for the Mac for you. You could also use CMake/CPack to build a dummy Mac application and then you'd be able to swap out all the pieces for your own binaries.

于 2013-05-02T04:36:11.923 回答