Add functionality to generate hashes of xpi files

NEW
Unassigned

Status

Other Applications
McCoy
--
enhancement
10 years ago
4 years ago

People

(Reporter: mossop, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
 
(Reporter)

Updated

10 years ago
Blocks: 395240

Comment 1

9 years ago
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.
https://fireclipse.svn.sourceforge.net/svnroot/fireclipse/trunk/FireclipseExtensions/chromebug/mccoy
(Reporter)

Updated

9 years ago
Blocks: 432307
(Reporter)

Updated

9 years ago
No longer blocks: 432307

Comment 2

9 years ago
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 http://getfirebug.com/releases use my extension.

I suspect the extension will only work for simple update.rdf files.

Comment 3

9 years ago
The xpis from zindus.com also use this extension: http://www.zindus.com/download-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:
  nsIRDFRemoteDataSource::GetDataSourceBlocking()
- this rdf tutorial notes that GetDataSourceBlocking requires absolute
  (not relative) URLs:
  http://www.xulplanet.com/tutorials/mozsdk/rdfsrcdetails.php
- 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,
http://developer.mozilla.org/en/docs/Debugging_a_XULRunner_Application#Console

Comment 4

6 years ago
Created attachment 557445 [details]
task tool lightfish.xpi
You need to log in before you can comment on or make changes to this bug.