可能包括单声道运行时在OSX的.app捆绑? [英] Possible to include Mono Runtimes in OSX .app bundle?

查看:134
本文介绍了可能包括单声道运行时在OSX的.app捆绑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待就需要在Windows和OSX都运行一个应用程序。因为我已经非常熟悉C#/。NET我以为我会看看使用单声道。但我也希望它很容易安装,并且不希望用户必须单独安装单包。是否有可能创建一个OS X的.app捆绑,仅仅包括一切吗?也就是说,我的应用程序,资源和完整的单声道运行?

I'm looking to work on an application that needs to run on both Windows and OSX. Since I'm already very familiar with C#/.NET I thought I would take a look at using Mono. But I also want it to very easy to install and don't want the users to have to install the Mono package separately. Is it possible to create an OS X .app bundle that simply includes EVERYTHING? That is, my app, resources and the complete Mono runtime?

推荐答案

是的,你可以做到这一点。选择一个应用程序,任何应用程序,并显示包内容。浏览了一下周围,你会看到有一个内部的内容/ MacOS的目录。它将包含与执行位的文件。这可以是机器代码或用任何旧脚本#!开头行。所有你需要做的是一个骨架应用重复的目录结构,推你的单声道运行到资源目录里,并编写初始化一切bash脚本。可能有这样做的漂浮在某处自动化事业,但它是很容易手动完成。

Yes, you can do this. Pick an app, any app, and Show Package Contents. Explore around a bit and you'll see that there's a Contents/MacOS directory inside. It will contain a file with the execute bit set. This can be machine code or any old script with a #! line at the beginning. All you need to do is duplicate the directory structure with a skeleton app, shove your Mono runtime into the Resources directory somewhere, and write a bash script that initializes everything. There may be automated utilities for doing this floating around somewhere, but it's pretty easy to do this manually.

我会建议使用您喜欢的构建工具来自动完成这一过程。

I'd recommend using your favorite build tool to automate this process.

这篇关于可能包括单声道运行时在OSX的.app捆绑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆