Remove "applications" do manifest do Opera
parent
6572521feb
commit
3c93bf011d
6
build.sh
6
build.sh
|
@ -16,11 +16,11 @@ do
|
||||||
file="extension.zip"
|
file="extension.zip"
|
||||||
if [ $i == "firefox" ]; then
|
if [ $i == "firefox" ]; then
|
||||||
file="extension.xpi"
|
file="extension.xpi"
|
||||||
elif [ $i == "chrome" ]; then
|
else
|
||||||
perl -0pe 's/,\s+"applications": \{(.*?\}){2}//s'\
|
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
|
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
|
fi
|
||||||
|
|
||||||
zip -j $DIR/$file $DIR/src/*
|
zip -j $DIR/$file $DIR/src/*
|
||||||
|
|
Loading…
Reference in New Issue