Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

Commit

Permalink
Rebuild the add-on (and improve the Makefile to handle update.rdf aut…
Browse files Browse the repository at this point in the history
…omatically).
  • Loading branch information
fqueze committed Feb 4, 2013
1 parent a4aedf4 commit 8a7e197
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
11 changes: 7 additions & 4 deletions addon/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
VERSION = 0.10

all:
rm ../static/webrtc.xpi
zip ../static/webrtc.xpi bootstrap.js options.xul chrome.manifest install.rdf \
styles/*.css
@echo "Did you remember to update the version in install.rdf?"
@echo "Don't forget to update ../static/update.rdf!"
@echo "sha256 sum is:"
shasum -a 256 ../static/webrtc.xpi
sed "s/@VERSION@/$(VERSION)/; \
s/@SHA256@/"`shasum -a 256 ../static/webrtc.xpi |cut -f1 -d' '`"/" \
< update.rdf.in > ../static/update.rdf
@echo
@echo "Did you remember to update the version number in Makefile?"
25 changes: 25 additions & 0 deletions addon/update.rdf.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>

<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<RDF:Description about="urn:mozilla:extension:[email protected]">
<em:updates>
<RDF:Seq>
<RDF:li resource="urn:mozilla:extension:[email protected]:0.7"/>
</RDF:Seq>
</em:updates>
</RDF:Description>
<RDF:Description about="urn:mozilla:extension:[email protected]:0.7">
<em:version>@VERSION@</em:version>
<em:targetApplication>
<RDF:Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>20.0a1</em:minVersion>
<em:maxVersion>21.0a1</em:maxVersion>
<em:updateLink>https://webrtc-demo.vcap.mozillalabs.com/webrtc.xpi</em:updateLink>
<em:updateInfoURL>https://webrtc-demo.vcap.mozillalabs.com/update.txt</em:updateInfoURL>
<em:updateHash>sha256:@SHA256@</em:updateHash>
</RDF:Description>
</em:targetApplication>
</RDF:Description>
</RDF:RDF>
4 changes: 2 additions & 2 deletions static/update.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
</em:updates>
</RDF:Description>
<RDF:Description about="urn:mozilla:extension:[email protected]:0.7">
<em:version>0.9</em:version>
<em:version>0.10</em:version>
<em:targetApplication>
<RDF:Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>20.0a1</em:minVersion>
<em:maxVersion>21.0a1</em:maxVersion>
<em:updateLink>https://webrtc-demo.vcap.mozillalabs.com/webrtc.xpi</em:updateLink>
<em:updateInfoURL>https://webrtc-demo.vcap.mozillalabs.com/update.txt</em:updateInfoURL>
<em:updateHash>sha256:97dabc30764643790b1c523f5a3cb0594433b1b5f4503d2e566ba20235f0ee02</em:updateHash>
<em:updateHash>sha256:9fb2aa621f8389766289f8706fb53fb482baba129a39fe9dfa0aa22defc2709e</em:updateHash>
</RDF:Description>
</em:targetApplication>
</RDF:Description>
Expand Down
Binary file modified static/webrtc.xpi
Binary file not shown.

0 comments on commit 8a7e197

Please sign in to comment.