-
-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update AMO release script to strip update_url
- Loading branch information
1 parent
7526213
commit 41be59b
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,9 +27,22 @@ if [ $# -ne 1 ]; then | |
exit 1 | ||
fi | ||
|
||
echo "change author value" | ||
echo "changing author value" | ||
sed -i -e '/[email protected]/,+1d' -e 's/"author": {/"author": "[email protected]",/' ../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" ./*) | ||
|