From 3c93bf011def9517a64616eabcb3ecb8e6a3ec09 Mon Sep 17 00:00:00 2001 From: Rodrigo Orem Date: Mon, 30 Oct 2017 17:36:27 -0200 Subject: [PATCH] Remove "applications" do manifest do Opera --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 540a6ca..294707f 100755 --- a/build.sh +++ b/build.sh @@ -16,11 +16,11 @@ do file="extension.zip" if [ $i == "firefox" ]; then file="extension.xpi" - elif [ $i == "chrome" ]; then + else perl -0pe 's/,\s+"applications": \{(.*?\}){2}//s'\ - $DIR/src/manifest.json > $DIR/src/manifest-chrome.json + $DIR/src/manifest.json > $DIR/src/_manifest.json rm $DIR/src/manifest.json - mv $DIR/src/manifest-chrome.json $DIR/src/manifest.json + mv $DIR/src/_manifest.json $DIR/src/manifest.json fi zip -j $DIR/$file $DIR/src/*