Skip to content

Commit

Permalink
Update AMO release script to strip update_url
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwords committed Jul 1, 2019
1 parent 7526213 commit 41be59b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion release-utils/make-signed-xpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,22 @@ if [ $# -ne 1 ]; then
exit 1
fi

echo "change author value"
echo "changing author value"
sed -i -e '/eff.software.projects@gmail.com/,+1d' -e 's/"author": {/"author": "privacybadger-owner@eff.org",/' ../checkout/src/manifest.json

echo "removing Chrome's update_url"
# remove update_url
sed -i -e '/"update_url": "https:\/\/clients2.google.com\/service\/update2\/crx"/,+0d' ../checkout/src/manifest.json
# fix the trailing comma
# TODO fragile! at least we validate the JSON below
# https://unix.stackexchange.com/a/26288
# https://unix.stackexchange.com/a/26290
sed -i -e '/"storage": {/{
n
n
s/},/}/
}' ../checkout/src/manifest.json

echo "making zip file for AMO"

(cd ../checkout/src && zip -q -r ../../pkg/"$AMO_ZIP_NAME" ./*)
Expand Down

0 comments on commit 41be59b

Please sign in to comment.