2

I have installed XULRunner 11.0 (xr) from here:

Downloads - sqlite-manager - Extension for Firefox and other apps to manage any sqlite database - Google Project Hosting

I have followed the steps listed here:

kiveo - Mac SQLite Manager Standalone App

I have read and tried the suggestions here (though they're for version 6.0):

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

I am able to get the help listing with this command:

/Library/Frameworks/XUL.framework/xulrunner-bin -h

I am able to run the app from Firefox using this command (after changing the max version in sqlitemanager-xr-0/application.ini to 11.0 from 11.0a1):

/Applications/Firefox.app/Contents/MacOS/firefox --app ~/Downloads/sqlitemanager-xr-0/application.ini

Here are the contents of the application.ini file:

[App]
Name=sqlite-manager
ID=SQLiteManager@mrinalkant.blogspot.com
Version=0.7.7
BuildID=201111132204
Vendor=lazierthanthou
Copyright=Copyright (c) 2008 - 2011 lazierthanthou

[Gecko]
MinVersion=2.0
MaxVersion=11.0

[XRE]
EnableExtensionManager=1

When I run the following command in Terminal, with or without sudo, it just immediately returns to the command prompt. There are no error messages. No application appears under Applications. Nothing seems to happen at all. (And, despite the stackoverflow page above noting that --install-app may not really be supported, it is in the XULRunner help listing - which I guess doesn't necessarily mean it'll work ;)

/Library/Frameworks/XUL.framework/xulrunner-bin --install-app Downloads/sqlitemanager-xr-0/ /Applications

Following a suggestion below, I checked for an exit code. The line above is returning 2.

Help?

4

4 回答 4

2

就像你对 Firefox 所做的那样,这个命令应该运行你的应用程序:

/Library/Frameworks/XUL.framework/xulrunner-bin --app ~/Downloads/sqlitemanager-xr-0/application.ini

此外,该--app开关在 XULRunner 中是可选的。

于 2012-07-08T17:55:52.400 回答
1

下面介绍如何制作一个可以从 Dock 运行的独立应用程序。

使用该xulrunner --install-app命令创建应用程序,然后将 的所有内容复制XUL.framework/Versions/Current到生成的应用程序中/Applications/sqlite-manager.app/Contents/MacOS

然后,您可以使用此处application.ini所述的文件创建一个包装脚本,该脚本在生成的应用程序中运行 xulrunner 。

例如,将以下内容放入sqlite-manager.app/Contents/MacOS/sqlite-manager并使其可执行。

#!/usr/bin/env bash

APP_PATH="/Applications/sqlite-manager.app"

"$APP_PATH/Contents/MacOS/xulrunner" --app "$APP_PATH/Contents/Resources/application.ini"

现在你必须告诉 OS X 运行sqlite-manager而不是xulrunner. 您可以通过编辑sqlite-manager.app/Contents/info.plist和设置CFBundleExecutable来做到sqlite-manager这一点:

<key>CFBundleExecutable</key>
<string>sqlite-manager</string>

这种方法的唯一限制是当您移动应用程序或重命名它时它会中断。我喜欢关于如何摆脱 sqlite-manager 脚本中的绝对路径的建议。

于 2013-10-03T13:09:36.657 回答
0

尝试这个:

firefox -chrome chrome://sqlitemanager/content/sqlitemanager.xul

或在 OS X 上

/Applications/Firefox.app/Contents/MacOS/firefox -chrome chrome://sqlitemanager/content/sqlitemanager.xul

(可在http://www.egeek.me/2013/09/07/how-to-run-sqlite-manager-with-a-single-command/找到)

对我来说在 UBUNTU 12.04 上可以很好地启动 sqlite 管理器而无需先启动 firefox

于 2014-08-06T15:51:56.363 回答
-1

如果安装成功,我认为该应用程序应该可以在您系统的某个常用位置使用(未提及,但我猜是 OSX :)。您是否查看过 /Applications 下的内容?

要查看命令是否悄悄失败,您可以检查它的返回值。有详细的开关吗?

$ cd narnia
bash: cd: narnia: No such file or directory
$ echo $?
1
$ cd .
$ echo $?
0
$ cd narnia && echo "success"
bash: cd: narnia: No such file or directory
$ cd . && echo "success"
success
于 2012-04-05T05:52:12.127 回答