From 67d1afa3006aa8b9956fa955322ace45a8f8e56e Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 28 Jun 2008 20:32:41 +0000 Subject: provisions for signing Signed-off-by: Michael Krelin --- diff --git a/Makefile.am b/Makefile.am index 06aeaae..a3236ce 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,12 +11,15 @@ XPI=${PACKAGE}-${VERSION}.xpi xpi: ${XPI} ${XPI}: install - test -z "${NO_UPDATE}" || sed -i -e '/em:updateURL/d' ${xpidir}/install.rdf + test -z "${NO_UPDATE}" || sed -i -e '/em:update\(URL\|Key\)/d' ${xpidir}/install.rdf cd ${xpichromedir} \ && ${ZIP} -r -m ${PACKAGE}.jar */ cd ${xpidir} \ && ${ZIP} -r @abs_builddir@/$@ . +update.rdf: update-template.rdf ${XPI} + sed -e "s//$$(sha1sum ${XPI}|cut -d\ -f1)/" <$< >$@ + install-data-local: ${xpidir}/chrome.manifest ${xpidir}/chrome.manifest: chrome.manifest Makefile diff --git a/configure.ac b/configure.ac index 61b9747..6a478db 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ AC_SUBST([COPYING]) AC_CONFIG_FILES([ Makefile install.rdf - update.rdf + update-template.rdf content/Makefile content/autoconf.dtd locale/Makefile diff --git a/install.rdf.in b/install.rdf.in index 9a00e0d..8ccdf34 100644 --- a/install.rdf.in +++ b/install.rdf.in @@ -13,6 +13,7 @@ chrome://fireflix/content/icons/32x32/fireflix.png http://kin.klever.net/fireflix/update?v=@VERSION@ chrome://fireflix/content/about.xul + MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDc/WnetE1dTmWKY+KzphLYfqrjOc88fK7FaGSnHbwa4lpvt3gt6W0GwiCjUATvXu9zWoDU60VKPVhN0ohIOAnUuvtqSTfxjDBwDcsRXjg7fg4nofmA2mTeZtULYMymSCYZB+w6krmlOpEBpWZl14yf5Jc93Lc3gCZPDvH0xXZl9QIDAQAB diff --git a/update.rdf.in b/update-template.rdf.in index aa368a6..4326468 100644 --- a/update.rdf.in +++ b/update-template.rdf.in @@ -19,6 +19,7 @@ 1.5 2.0.0.* http://kin.klever.net/dist/@PACKAGE@-@VERSION@.xpi + sha1: -- cgit v0.9.0.2