@@ -31,7 +31,7 @@ if [ -n "$1" -a "$1" != "--remove-update-channel" ]; then
3131 git submodule update --recursive -f
3232fi
3333
34- VERSION=` python2.7 -c " import json ; print(json.loads(open('chromium/manifest.json').read())['version'])" `
34+ VERSION=` python3.6 -c " import json ; print(json.loads(open('chromium/manifest.json').read())['version'])" `
3535
3636echo " Building version" $VERSION
3737
@@ -70,15 +70,15 @@ cp -a src/META-INF pkg/xpi-eff
7070
7171# Remove the 'applications' manifest key from the crx version of the extension, change the 'author' string to a hash, and add the "update_url" manifest key
7272# "update_url" needs to be present to avoid problems reported in https://bugs.chromium.org/p/chromium/issues/detail?id=805755
73- python2.7 -c " import json; m=json.loads(open('pkg/crx/manifest.json').read()); m['author']={'email': 'eff.software.projects@gmail.com'}; del m['applications']; m['update_url'] = 'https://clients2.google.com/service/update2/crx'; open('pkg/crx/manifest.json','w').write(json.dumps(m,indent=4,sort_keys=True))"
73+ python3.6 -c " import json; m=json.loads(open('pkg/crx/manifest.json').read()); m['author']={'email': 'eff.software.projects@gmail.com'}; del m['applications']; m['update_url'] = 'https://clients2.google.com/service/update2/crx'; open('pkg/crx/manifest.json','w').write(json.dumps(m,indent=4,sort_keys=True))"
7474# Remove the 'update_url' manifest key from the xpi version of the extension delivered to AMO
75- python2.7 -c " import json; m=json.loads(open('pkg/xpi-amo/manifest.json').read()); del m['applications']['gecko']['update_url']; m['applications']['gecko']['id'] = 'https-everywhere@eff.org'; open('pkg/xpi-amo/manifest.json','w').write(json.dumps(m,indent=4,sort_keys=True))"
75+ python3.6 -c " import json; m=json.loads(open('pkg/xpi-amo/manifest.json').read()); del m['applications']['gecko']['update_url']; m['applications']['gecko']['id'] = 'https-everywhere@eff.org'; open('pkg/xpi-amo/manifest.json','w').write(json.dumps(m,indent=4,sort_keys=True))"
7676
7777# If the --remove-update-channel flag is set, ensure the extension is unable to update
7878if [ " $1 " == " --remove-update-channel" -o " $2 " == " --remove-update-channel" ]; then
7979 echo " Flag --remove-update-channel specified. Removing the XPI extensions' ability to update."
80- python2.7 -c " import json; m=json.loads(open('pkg/xpi-amo/manifest.json').read()); m['applications']['gecko']['update_url'] = 'data:text/plain,'; open('pkg/xpi-amo/manifest.json','w').write(json.dumps(m,indent=4,sort_keys=True))"
81- python2.7 -c " import json; m=json.loads(open('pkg/xpi-eff/manifest.json').read()); m['applications']['gecko']['update_url'] = 'data:text/plain,'; open('pkg/xpi-eff/manifest.json','w').write(json.dumps(m,indent=4,sort_keys=True))"
80+ python3.6 -c " import json; m=json.loads(open('pkg/xpi-amo/manifest.json').read()); m['applications']['gecko']['update_url'] = 'data:text/plain,'; open('pkg/xpi-amo/manifest.json','w').write(json.dumps(m,indent=4,sort_keys=True))"
81+ python3.6 -c " import json; m=json.loads(open('pkg/xpi-eff/manifest.json').read()); m['applications']['gecko']['update_url'] = 'data:text/plain,'; open('pkg/xpi-eff/manifest.json','w').write(json.dumps(m,indent=4,sort_keys=True))"
8282fi
8383
8484if [ -n " $BRANCH " ] ; then
@@ -170,16 +170,6 @@ cp $zip $xpi_eff
170170
171171bash utils/android-push.sh " $xpi_eff "
172172
173- # rm -rf pkg/crx
174-
175- # python2.7 githubhelper.py $VERSION
176-
177- # git add chromium/updates.xml
178- # git commit -m "release $VERSION"
179- # git tag -s chrome-$VERSION -m "release $VERSION"
180- # git push
181- # git push --tags
182-
183173echo >&2 " Total included rules: ` find src/chrome/content/rules -name " *.xml" | wc -l` "
184174echo >&2 " Rules disabled by default: ` find src/chrome/content/rules -name " *.xml" | xargs grep -F default_off | wc -l` "
185175
0 commit comments