Skip to content

Commit

Permalink
Separate xpi packaging script and computing package hash script
Browse files Browse the repository at this point in the history
  • Loading branch information
mooz committed Aug 22, 2015
1 parent 6139510 commit 250f116
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 1 addition & 6 deletions createpackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,4 @@ zip -j -9 keysnail.xpi /tmp/chrome.manifest

## ================================ ##

# copy hash for creating update info
HASH=`shasum -a 1 keysnail.xpi | sed s'/[ ].*$//'`
echo sha1:$HASH | xsel -ib
mv update.rdf update.rdf.bak
sed -e "s/em:updateHash=\".*\"/em:updateHash=\"sha1:$HASH\"/" update.rdf.bak > update.rdf

./updatehash.sh
7 changes: 7 additions & 0 deletions updatehash.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

# copy hash for creating update info
HASH=`shasum -a 1 keysnail.xpi | sed s'/[ ].*$//'`
echo sha1:$HASH | xsel -ib
mv update.rdf update.rdf.bak
sed -e "s/em:updateHash=\".*\"/em:updateHash=\"sha1:$HASH\"/" update.rdf.bak > update.rdf

0 comments on commit 250f116

Please sign in to comment.