如何在 Mac OS X 上安装并运行 XulRunner 应用程序?

发布于 2024-12-03 17:49:14 字数 1131 浏览 7 评论 0原文

我使用的是 Mac OS X Lion,并且完全按照本教程进行操作:

https:// developer.mozilla.org/en/getting_started_with_xulrunner

当我尝试运行时:

 /Library/Frameworks/XUL.framework/xulrunner-bin --install-app /Users/CIRK/Documents/deskapp.zip

在终端中没有给我任何结果,并且我找不到任何名为deskapp.app。所以我的意思是什么也没有发生。

我尝试按照教程中的建议在不安装的情况下运行它,但不起作用:

/Library/Frameworks/XUL.framework/xulrunner-bin "/Users/CIRK/Documents/dekapp/application.ini"

我通过从此处下载的安装程序安装了 XulRunner:

http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/7.0b4/runtimes/xulrunner-7.0b4.en-US.mac-pkg.dmg

时我运行 /Library/Frameworks/XUL.framework/xulrunner-bin 我得到了帮助说明,但是当我运行时/Library/Frameworks/XUL.framework/xulrunner-bin -v 我收到错误:

Mozilla XULRunner; -

那么我该怎么办?

I'm on a Mac OS X Lion, and I have followed this tutorial exactly as it is:

https://developer.mozilla.org/en/getting_started_with_xulrunner

When I try to run:

 /Library/Frameworks/XUL.framework/xulrunner-bin --install-app /Users/CIRK/Documents/deskapp.zip

Gives me nothing as a result in the terminal, and I can't find any file called deskapp.app. So I mean nothing happens at all.

I tried to run it without the installation as it is suggested in the tutorial but doesn't worked :

/Library/Frameworks/XUL.framework/xulrunner-bin "/Users/CIRK/Documents/dekapp/application.ini"

I installed XulRunner from an installer downloaded from here:

http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/7.0b4/runtimes/xulrunner-7.0b4.en-US.mac-pkg.dmg

when I run /Library/Frameworks/XUL.framework/xulrunner-bin I get the help instructions but when I run /Library/Frameworks/XUL.framework/xulrunner-bin -v I get an error:

Mozilla XULRunner <Error> - <Error>

So what should I do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

空名 2024-12-10 17:49:14

我不确定是否真正支持 --install-app 。直接运行应该可以,但是,请确保在 application.ini 路径之前添加 --app 命令行标志:但是:

/Library/Frameworks/XUL.framework/xulrunner-bin --app "/Users/CIRK/Documents/dekapp/application.ini"

当您尝试直接运行应用程序时发生了什么? “不起作用”并不是一个很好的描述...

最后一个建议:当前稳定 XULRunner 版本是 XULRunner 6.0,您应该使用它。

I'm not sure whether --install-app is really supported. Running directly should work however, make sure to add --app command line flag before the path to application.ini however:

/Library/Frameworks/XUL.framework/xulrunner-bin --app "/Users/CIRK/Documents/dekapp/application.ini"

What happened when you tried to run the app directly? "Doesn't work" isn't a great description...

And one final suggestion: the current stable XULRunner release is XULRunner 6.0, you should use it.

笔芯 2024-12-10 17:49:14

Firefox 3+ 包含 xulrunner,您可以使用以下方式运行任何应用程序:

/Applications/Firefox.app/Contents/MacOS/firefox -app YourApp/application.ini

Firefox 3+ includes xulrunner, you can run any app using:

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