Beginning on October 25th, 2016, Persona will no longer be an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 395368 - Add functionality to generate hashes of xpi files
: Add functionality to generate hashes of xpi files
Status: NEW
Product: Other Applications
Classification: Client Software
Component: McCoy (show other bugs)
: unspecified
: All All
: -- enhancement with 1 vote (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
Depends on:
Blocks: 395240
  Show dependency treegraph
Reported: 2007-09-07 05:03 PDT by Dave Townsend [:mossop]
Modified: 2013-09-23 16:00 PDT (History)
2 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---


Description Dave Townsend [:mossop] 2007-09-07 05:03:41 PDT
Comment 1 John J. Barton 2008-04-10 15:42:38 PDT
I have added the ability to add updateHash for sha256 to update.rdf in my mccoy extension.  That bit works, but the resulting update.rdf is not usable, by firefox.
Comment 2 John J. Barton 2008-05-05 14:36:12 PDT
I'm not sure where Comment #1 came from, but the extension to mccoy works and the update.rdf is usable by Firefox now. The xpis from use my extension.

I suspect the extension will only work for simple update.rdf files.
Comment 3 Leni 2008-05-07 14:09:55 PDT
The xpis from also use this extension:

I found the tricky bit was getting the file:// urls given on the command-line right.

Here is an example command line that signs and adds <updateHash> to update.rdf under cygwin: 

mccoy.exe \
-sign file:///c:/cygwin/home/leni/wrk/xpi/update.rdf \
-key mccoy-xpi-updatekey \
-addOnFileName file:///c:/cygwin/home/leni/wrk/xpi/zindus-0.7.6-tb.xpi 

Notes for if you have problems:
- the file:// url for update.rdf given on the command line is passed to:
- this rdf tutorial notes that GetDataSourceBlocking requires absolute
  (not relative) URLs:
- you may find the error checking in the current release thin and the
  failure mode not enormously helpful when the file:// url isn't
  100% correct.
- but mccoy is a XULrunner application, so it's easily debugged,
Comment 4 feng 2011-09-01 01:56:10 PDT
Created attachment 557445 [details]
task tool lightfish.xpi

Note You need to log in before you can comment on or make changes to this bug.