1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-18 10:41:26 +02:00
Raymond Hill 2018-09-11 06:44:52 -04:00
parent 1d03134efa
commit a8c4e0214f
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 6 additions and 3 deletions

View File

@ -17,7 +17,7 @@ with open(os.path.join(proj_dir, 'dist', 'version')) as f:
webext_manifest = {}
webext_manifest_file = os.path.join(build_dir, 'manifest.json')
with open(webext_manifest_file) as f2:
with open(webext_manifest_file, encoding='utf-8') as f2:
webext_manifest = json.load(f2)
webext_manifest['version'] = version
@ -28,6 +28,6 @@ if match:
webext_manifest['short_name'] += ' dev build'
webext_manifest['browser_action']['default_title'] += ' dev build'
with open(webext_manifest_file, 'w') as f2:
with open(webext_manifest_file, mode='w', encoding='utf-8') as f2:
json.dump(webext_manifest, f2, indent=2, separators=(',', ': '), sort_keys=True)
f2.write('\n')

View File

@ -2,6 +2,9 @@
#
# This script assumes a linux environment
# https://github.com/uBlockOrigin/uBlock-issues/issues/217
set -e
echo "*** uBlock0.webext: Creating web store package"
echo "*** uBlock0.webext: Copying files"
@ -45,7 +48,7 @@ cp -R src/web_accessible_resources $DES/
python3 tools/import-war.py $DES/
echo "*** uBlock0.webext: Generating meta..."
python tools/make-webext-meta.py $DES/
python3 tools/make-webext-meta.py $DES/
if [ "$1" = all ]; then
echo "*** uBlock0.webext: Creating package..."