Rebuild the add-on (and improve the Makefile to handle update.rdf automatically).

This commit is contained in:
Florian Quèze 2013-02-04 12:23:49 +01:00
Родитель a4aedf439f
Коммит 8a7e19722a
4 изменённых файлов: 34 добавлений и 6 удалений

Просмотреть файл

@ -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
addon/update.rdf.in Normal file
Просмотреть файл

@ -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:webrtc-demo@mozillalabs.com">
<em:updates>
<RDF:Seq>
<RDF:li resource="urn:mozilla:extension:webrtc-demo@mozillalabs.com:0.7"/>
</RDF:Seq>
</em:updates>
</RDF:Description>
<RDF:Description about="urn:mozilla:extension:webrtc-demo@mozillalabs.com: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>

Просмотреть файл

@ -10,7 +10,7 @@
</em:updates>
</RDF:Description>
<RDF:Description about="urn:mozilla:extension:webrtc-demo@mozillalabs.com: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>
@ -18,7 +18,7 @@
<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>

Двоичные данные
static/webrtc.xpi

Двоичный файл не отображается.