即使 Mac 应用程序具有框架,仍将其打包以进行手动安装?

发布于 2024-09-16 22:47:20 字数 228 浏览 6 评论 0原文

我目前正在构建我的第一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

◇流星雨 2024-09-23 22:47:20

将框架放入应用程序包的 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/.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文