Packing CRX in linux

1,851 views
Skip to first unread message

oDx

unread,
Jul 12, 2010, 9:58:41 AM7/12/10
to Chromium-extensions
is there any way of packing CRX, via terminal in linux.
I use ubuntu. previously I created a chrome theme creator in windows.
I was using the CMD commands for packing the theme.
Now I am creating a creator for linux. But not able to find a way of
packing the themes via terminal so that I can implement it in my
application. :)
Can somebody help me on this. :)

Arne Roomann-Kurrik

unread,
Jul 12, 2010, 3:08:51 PM7/12/10
to oDx, Chromium-extensions
The command-line packaging flags should also work in Linux:

Additionally, there's a ruby script (linked to from the bottom of that page) that can package extensions.

~Arne



--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


Ben

unread,
Jul 12, 2010, 3:10:17 PM7/12/10
to oDx, Chromium-extensions
See section "Packaging at the command line" on this page:
http://code.google.com/chrome/extensions/packaging.html

That all seems relevant. If that doesn't work, it would help to know
what the output in the terminal is when you try.

Joaquín Ayuso de Paúl

unread,
Jul 12, 2010, 2:29:05 PM7/12/10
to oDx, Chromium-extensions
You can actually use the scripting version (what we use here):


Have a look into it. You can even automate the process (as we have too).

Joax.

On Mon, Jul 12, 2010 at 6:58 AM, oDx <plato...@gmail.com> wrote:

oDx

unread,
Jul 13, 2010, 5:16:26 AM7/13/10
to Chromium-extensions
Hi,
Thanks for all the replies. I have already tried the command line from
windows in linux.
But whatever I do the message displayed is "Created new window in
existing browser session." and then a new chrome windows will pop up.
thats it.

And about that ruby script. I will try that only as the last resort.
Implementing it in my program will be hell lot of a task i think!

The chrome GUI can pack the extensions. So I hope there will be some
work around for doing this via terminal.

oDx

unread,
Jul 13, 2010, 6:35:02 AM7/13/10
to Chromium-extensions
A BIG Sorry guys. I missed the most basic part while doing it! :|
I had to close all chrome windows before doing it and I forgot that
now.

Its working fine with the windows commandline arguments.
I just checked out the code for the previous creator and I had given a
comment for this . :)

anyway thx for your help. :)

Mike Pilsbury

unread,
Jul 13, 2010, 4:00:10 PM7/13/10
to Chromium-extensions
If you run the chrome command with the --user-data-dir option, it'll
use a separate profile, and avoid the need to close your chrome
windows. So something along these lines.

/opt/google/chrome/google-chrome --user-data-dir=... --pack-
extension=... --pack-extension-key=... --no-message-box

Mark Wubben

unread,
Jul 15, 2010, 4:16:52 AM7/15/10
to oDx, Chromium-extensions
On Jul 13, 2010, at 11:16 , oDx wrote:
> And about that ruby script. I will try that only as the last resort.
> Implementing it in my program will be hell lot of a task i think!

You could do the specific building in a separate Ruby script you just call out to, just like you call out to Chrome now. The upside would be that you don't have to close any Chrome windows, you can even run it on machines that don't have Chrome installed.

--
Mark Wubben

http://supercollider.dk

Reply all
Reply to author
Forward
0 new messages