即使 Mac 应用程序具有框架,仍将其打包以进行手动安装?
我目前正在构建我的第一个 Mac 应用程序,我对交付过程有点困惑。我已经快速阅读了《软件交付指南》,但这似乎意味着如果我的应用程序中有多个组件,我应该使用托管安装。我的应用程序非常简单,但它确实依赖于 VVOpenSource 框架,因此当我构建应用程序时,除了 .app 包之外,我还有 3 个 .framework 目录。我想让安装尽可能简单,所以从 DMG 手动安装会很棒。
我是否可以将我的应用程序打包到 DMG 中?
I'm currently building my first Mac application and I'm a little confused by the delivery process. I've quickly read through the Software Delivery Guide but it seems to imply that if I have several components in my app, I should use a managed install. My application is very simple but it does rely on VVOpenSource frameworks, so when I build my app, beside my .app package, I have 3 .framework directories. I would like to make the installation as simple as possible so a manual install from a DMG would be awesome.
Is there anyway I can package my application in a DMG anyway?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将框架放入应用程序包的 Contents/Frameworks 目录中。为此,您需要在构建框架时正确设置“安装目录”,例如
@executable_path/../Frameworks/
。Put the frameworks inside the Contents/Frameworks directory in your app package. In order to do that, you need to set the "installation directory" correctly when you build the frameworks, for instance to
@executable_path/../Frameworks/
.