bring support for dev build in Chrome store

This commit is contained in:
gorhill 2016-08-04 08:24:11 -04:00
parent a5a9e0ce7c
commit c274195b69
4 changed files with 8 additions and 5 deletions

View File

@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "uBlock Origin",
"version": "1.8.1",
"version": "1.8.1.1",
"default_locale": "en",
"description": "__MSG_extShortDesc__",

View File

@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "uBlock Origin",
"version": "1.8.1",
"version": "1.8.1.1",
"default_locale": "en",
"description": "__MSG_extShortDesc__",

View File

@ -2,6 +2,7 @@
import os
import json
import re
import sys
from io import open
from shutil import rmtree
@ -75,8 +76,10 @@ with open(chromium_manifest, encoding='utf-8') as m:
# https://developer.mozilla.org/en-US/Add-ons/AMO/Policy/Maintenance#How_do_I_submit_a_Beta_add-on.3F
# "To create a beta channel [...] '(a|alpha|b|beta|pre|rc)\d*$' "
if sys.argv[2]:
manifest['version'] += sys.argv[2]
match = re.search('^(\d+\.\d+\.\d+)(\.\d+)$', manifest['version'])
if match:
manifest['version'] = match.group(1) + 'b' + match.group(2)[1:]
manifest['homepage'] = 'https://github.com/gorhill/uBlock'
manifest['description'] = descriptions['en']

View File

@ -32,7 +32,7 @@ cp platform/firefox/*.xul $DES/
cp LICENSE.txt $DES/
echo "*** uBlock0.firefox: Generating meta..."
python tools/make-firefox-meta.py $DES/ "$2"
python tools/make-firefox-meta.py $DES/
if [ "$1" = all ]; then
set +v