How to Install and run a XulRunner Application on Mac OS X?

一笑奈何 提交于 2019-12-30 23:25:10

问题


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?


回答1:


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.




回答2:


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

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


来源:https://stackoverflow.com/questions/7332736/how-to-install-and-run-a-xulrunner-application-on-mac-os-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!