我正在尝试在 Mac OS X 中创建 XUL“Hello World”应用程序。我从以下位置下载 XULRunnerhere http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/2.0rc1/runtimes/,随后本教程 https://developer.mozilla.org/en/Getting_started_with_XULRunner进而本教程 https://developer.mozilla.org/en/XUL_Tutorial进而本教程 http://www.xul.fr/tutorial/...没有一个有效。所以,我仔细观察后发现本节 https://developer.mozilla.org/en/Getting_started_with_XULRunner#Mac,我遵循了他的指示。不幸的是,它还不起作用。我什至可以使用命令运行应用程序
/Library/Frameworks/XUL.framework/xulrunner-bin $PWD/application.ini
但是,没有显示任何窗口,也没有打印任何错误。当我尝试运行应用程序时会发生这种情况firefox -app
too.
有什么问题吗?另外,有人知道一些可行的教程吗?这也是一个可以接受的答案:)
提前致谢!
文件内容
的内容application.ini
文件是:
[App]
Vendor=Me
Name=Zull
Version=1.0
BuildID=31052011
[email protected] /cdn-cgi/l/email-protection
[Gecko]
MinVersion=2.0
MaxVersion=2.*
内容为chrome/chrome.manifest
is:
content zull file:content/
内容为chrome/content/main.xul
is:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="main" title="My App" width="300" height="300"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<caption label="Hello World"/>
</window>
最后,内容为defaults/preferences/prefs.js
is:
pref("toolkit.defaultChromeURI", "chrome://zull/content/main.xul");