4

有没有一种简单的方法来创建跨平台可移植 Xulrunner 应用程序?

我所说的“便携”是指http://portableapps.com/上的人所做的,但除此之外,我希望能够在我需要的任何平台运行时都放在闪存棒上。

例如,如果我希望我的应用程序在 Linux 上运行,我将 Xulrunner 的 linux 构建和我的 xulrunner 应用程序放在一起。如果我希望我的应用程序在 Windows 上运行,我还会放置 Xulrunner 的 Windows 版本等。

然后,最终用户将能够根据他/她使用的计算机上安装的平台运行相同的应用程序。一切都很好,假设我决定如何组织文件等。

问题出现在应用程序运行时。它在当前计算机上找到默认配置文件目录并使用它(NO PORTABLE)。配置文件目录应该在闪存棒上。

我在命令行上尝试了以下操作:

#After setting the following in my application.ini
[XRE]
EnableProfileMigrator=1
#and providing the branding information for the profilemanager

~/my/app$ ~/opt/xulrunner/1.9.0.7/xulrunner application.ini -P

但这只会启动配置文件管理器

创建配置文件后,我尝试使用以下命令运行应用程序:

~/my/app$ ~/opt/xulrunner/1.9.0.7/xulrunner application.ini \
-profile ../../../opt/xulrunner/j2b59nt8.default

现在它似乎工作了,但仍然不够。所以我的问题应该是: 如何使用自定义相对路径为 xulrunner 应用程序设置配置文件目录?

任何见解? 谢谢你。

4

1 回答 1

2

确认的 :)

http://kb.mozillazine.org/Starting_your_Mozilla_application_with_a_specified_profile#Bypassing_the_Profile_Manager 现在我只需要创建一个查找所需路径并运行 xulrunner 的 louncher(已编译的 exe)

于 2009-04-19T20:21:49.850 回答