Browse Source

rename more accurately webext version to webext-hybrid

pull/2/head
gorhill 7 years ago
parent
commit
fa7b0777f3
  1. 2
      .travis.yml
  2. 2
      tools/make-webext-hybrid-meta.py
  3. 14
      tools/make-webext-hybrid.sh

2
.travis.yml

@ -3,7 +3,7 @@ env:
matrix: matrix:
- BROWSER=chromium EXT=zip - BROWSER=chromium EXT=zip
- BROWSER=firefox EXT=xpi - BROWSER=firefox EXT=xpi
- BROWSER=webext EXT=xpi
- BROWSER=webext-hybrid EXT=xpi
script: ./tools/make-${BROWSER}.sh all script: ./tools/make-${BROWSER}.sh all
deploy: deploy:
provider: releases provider: releases

2
tools/make-webext-hybrid-meta.py

@ -44,7 +44,7 @@ for alpha2 in sorted(os.listdir(source_locale_dir)):
descriptions[alpha2] = strings['extShortDesc']['message'] descriptions[alpha2] = strings['extShortDesc']['message']
webext_manifest['author'] = chromium_manifest['author']; webext_manifest['author'] = chromium_manifest['author'];
webext_manifest['name'] = chromium_manifest['name'] + '/webext';
webext_manifest['name'] = chromium_manifest['name'] + '/webext-hybrid';
webext_manifest['homepage'] = 'https://github.com/gorhill/uMatrix' webext_manifest['homepage'] = 'https://github.com/gorhill/uMatrix'
webext_manifest['description'] = escape(descriptions['en']) webext_manifest['description'] = escape(descriptions['en'])
del descriptions['en'] del descriptions['en']

14
tools/make-webext-hybrid.sh

@ -2,10 +2,10 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
echo "*** uMatrix.webext: Creating web store package"
echo "*** uMatrix.webext: Copying files"
echo "*** uMatrix.webext-hybrid: Creating web store package"
echo "*** uMatrix.webext-hybrid: Copying files"
DES=dist/build/uMatrix.webext
DES=dist/build/uMatrix.webext-hybrid
rm -rf $DES rm -rf $DES
mkdir -p $DES/webextension mkdir -p $DES/webextension
@ -25,14 +25,14 @@ cp platform/webext/chrome.manifest $DES/
cp platform/webext/install.rdf $DES/ cp platform/webext/install.rdf $DES/
mv $DES/webextension/img/icon_128.png $DES/icon.png mv $DES/webextension/img/icon_128.png $DES/icon.png
echo "*** uMatrix.webext: Generating meta..."
python tools/make-webext-meta.py $DES/
echo "*** uMatrix.webext-hybrid: Generating meta..."
python tools/make-webext-hybrid-meta.py $DES/
if [ "$1" = all ]; then if [ "$1" = all ]; then
echo "*** uMatrix.webext: Creating package..."
echo "*** uMatrix.webext-hybrid: Creating package..."
pushd $DES > /dev/null pushd $DES > /dev/null
zip ../$(basename $DES).xpi -qr * zip ../$(basename $DES).xpi -qr *
popd > /dev/null popd > /dev/null
fi fi
echo "*** uMatrix.webext: Package done."
echo "*** uMatrix.webext-hybrid: Package done."
Loading…
Cancel
Save