aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-08-12 16:31:19 -0400
committergorhill <rhill@raymondhill.net>2015-08-12 16:31:19 -0400
commit29b695d81331c40c7f8ffc7b568726b37857c4d6 (patch)
treec645bbec966e5877ea2d23bd8759c11fe3a83ff3 /tools
parent5bdf14329c679c3f2695e9e1f930d7b1e1fbb6e8 (diff)
downloaduBlock-29b695d81331c40c7f8ffc7b568726b37857c4d6.zip
uBlock-29b695d81331c40c7f8ffc7b568726b37857c4d6.tar.gz
uBlock-29b695d81331c40c7f8ffc7b568726b37857c4d6.tar.bz2
changes for a beta channel on AMO
Diffstat (limited to 'tools')
-rw-r--r--tools/make-firefox-meta.py5
-rwxr-xr-xtools/make-firefox.sh2
2 files changed, 6 insertions, 1 deletions
diff --git a/tools/make-firefox-meta.py b/tools/make-firefox-meta.py
index 284fa96..26e5952 100644
--- a/tools/make-firefox-meta.py
+++ b/tools/make-firefox-meta.py
@@ -73,6 +73,11 @@ chromium_manifest = pj(proj_dir, 'platform', 'chromium', 'manifest.json')
with open(chromium_manifest, encoding='utf-8') as m:
manifest = json.load(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]
+
manifest['homepage'] = 'https://github.com/gorhill/uBlock'
manifest['description'] = descriptions['en']
del descriptions['en']
diff --git a/tools/make-firefox.sh b/tools/make-firefox.sh
index e5da0e7..6be5131 100755
--- a/tools/make-firefox.sh
+++ b/tools/make-firefox.sh
@@ -28,7 +28,7 @@ cp platform/firefox/*.xul $DES/
cp LICENSE.txt $DES/
echo "*** uBlock0.firefox: Generating meta..."
-python tools/make-firefox-meta.py $DES/
+python tools/make-firefox-meta.py $DES/ "$2"
if [ "$1" = all ]; then
echo "*** uBlock0.firefox: Creating package..."