How to Install and run a XulRunner Application on

2019-02-24 07:13发布

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?

2条回答
我只想做你的唯一
2楼-- · 2019-02-24 07:41

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.

查看更多
可以哭但决不认输i
3楼-- · 2019-02-24 07:54

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

/Applications/Firefox.app/Contents/MacOS/firefox -app YourApp/application.ini
查看更多
登录 后发表回答