-
Notifications
You must be signed in to change notification settings - Fork 18
/
make-zips
executable file
·26 lines (20 loc) · 1.25 KB
/
make-zips
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -euo pipefail
rm -rf build
mkdir build
cd src-1.0
zip -r ../build/make-it-red-1.0.xpi *
cd ../src-1.1
zip -r ../build/make-it-red-1.1.xpi *
cd ../src-1.2
zip -r ../build/make-it-red-1.2.xpi *
cd ../src-2.0
zip -r ../build/make-it-red-2.0.xpi *
cd ../build
jq ".addons[\"[email protected]\"].updates[0].update_hash = \"sha256:`shasum -a 256 make-it-red-1.1.xpi | cut -d' ' -f1`\"" ../updates-1.0.json.tmpl > updates-1.0.json
cp updates-1.0.json update.rdf
jq ".addons[\"[email protected]\"].updates[0].update_hash = \"sha256:`shasum -a 256 make-it-red-1.2.xpi | cut -d' ' -f1`\"" ../updates-1.1.json.tmpl | \
jq ".addons[\"[email protected]\"].updates[1].update_hash = \"sha256:`shasum -a 256 make-it-red-2.0.xpi | cut -d' ' -f1`\"" > updates-1.1.json
jq ".addons[\"[email protected]\"].updates[0].update_hash = \"sha256:`shasum -a 256 make-it-red-1.2.xpi | cut -d' ' -f1`\"" ../updates-1.2.json.tmpl | \
jq ".addons[\"[email protected]\"].updates[1].update_hash = \"sha256:`shasum -a 256 make-it-red-2.0.xpi | cut -d' ' -f1`\"" > updates-1.2.json
jq ".addons[\"[email protected]\"].updates[0].update_hash = \"sha256:`shasum -a 256 make-it-red-2.0.xpi | cut -d' ' -f1`\"" ../updates-2.0.json.tmpl > updates-2.0.json