Mac 上的 Awesomium
我开发了一个在 mac 上使用 Awesomium 的程序,我正在尝试将整个程序捆绑到一个应用程序包中。
我已经将框架和所有内容打包到了捆绑包中,但 awesomuim 使用了一些外部可执行文件,这些文件必须存在才能运行渲染(Awesomium 和 AwesomiumProcess),
如果我将这些文件放在应用程序捆绑包内部的外部与 .app 相同的目录一切正常,但是我希望能够只部署包含整个应用程序的单个 .app 文件,我的问题是:我必须在哪里放置额外的可执行文件以便它们运行我的应用程序(或者更确切地说,我的应用程序可以运行它们)。
I have developed a program that uses Awesomium on mac, and I am trying to bundle the entire thing into an Application Bundle.
I have the framework and everything packaged into the bundle where it is supposed to be, but awesomuim uses some external executables that must be present for the rendering to run (Awesomium & AwesomiumProcess)
If I place these file outside of the application bundle inside the same directory as the .app everything works fine, however I would like to be able to just deploy the single .app file containing the entier application, my question is: Where do I have to put the additional executables so that they will run with my application (or rather so my application can run them).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Awesomium.framework(包含 Awesomium 和 AwesomiumProcess)只需复制到应用程序包的“Frameworks”文件夹即可。
来自我们的支持文档:
如果您的项目是使用应用程序包(例如,您正在创建一个 Cocoa 应用程序):
让我知道这是否有效!
Awesomium.framework (which contains Awesomium and AwesomiumProcess) just needs to be copied to the "Frameworks" folder of your app bundle.
From our support documentation:
If your project is using an Application Bundle (e.g., you're creating a Cocoa Application):
Let me know if this works!
其他可执行文件通常放入
.app
包的Resources
目录中。您可以使用NSBundle
获取此类可执行文件的路径(或者,如果由于某种原因可执行文件需要位于PATH
上,您可以将路径添加到NSBundle
>Resources 目录到应用程序加载时的PATH
环境变量)。Additional executables are often put into a
.app
bundle'sResources
directory. You can get the path to such an executable usingNSBundle
(or, if the executable needs to be on thePATH
for some reason, you can add the path to theResources
directory to thePATH
environment variable when the application loads).