问题描述
我目前正在尝试为我的 monotouch 项目实施一键式构建解决方案(无需启动 monodevelop IDE),我可以在其中指定配置文件和代码签名证书.我搜索了流行的构建工具,如 nant、ant 和 maven,但似乎没有一个支持单点触控.有人试过类似的吗?
I am currently trying to implement a one-click build solution (without having to start the monodevelop IDE) for my monotouch projects, where i could specify provisioning profiles and code signing certificates. I searched popular build tools like nant, ant and maven, but none seems to support monotouch. Has anyone tried something similar ?
推荐答案
我已经使用 Jenkins(又名 Hudson).
您基本上设置了一个 Jenkins 服务器,并将您的 Mac 设置为从"构建服务器.(我使用了 JNLP 从站).
You basically setup a Jenkins server, and setup your Mac as a "slave" build server. (I used a JNLP slave).
从那里你可以在构建中运行任何你想要的命令行,所以你只需要运行带有一些参数的 mdtool,就像这样:
From there you can run any command line you want in the build, so you merely have to run mdtool with some arguments, like so:
/Applications/MonoDevelop.app/Contents/MacOS/mdtool -v build "--configuration:Release|iPhone" "Path/To/YourSolution.sln"
需要担心的一点是,要签署 iOS 应用程序,从属进程必须在您的用户下运行.所以你不能真正为它创建一个 Mac 守护进程,你必须在启动时为你的用户运行从进程并最小化它,这有点烦人.
One thing to worry about is that to sign an iOS app, the slave process must run under your user. So you can't really create a Mac daemon for it, you'll have to run the slave process in startup for your user and minimize it, which is kind of annoying.
这篇关于在单点触控中自动构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!