From 4e2951609050a32b4897e3f5de39f09bf4410a1e Mon Sep 17 00:00:00 2001 From: dhowe Date: Mon, 23 Jan 2017 17:56:36 +0800 Subject: [PATCH] working on webextensions --- platform/webext/manifest.json | 2 +- tools/make-webext.sh | 8 ++++---- tools/run-webext.sh | 13 +++++++++++++ 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100755 tools/run-webext.sh diff --git a/platform/webext/manifest.json b/platform/webext/manifest.json index f91a828cb944e..82e69a1ac47c9 100644 --- a/platform/webext/manifest.json +++ b/platform/webext/manifest.json @@ -7,7 +7,7 @@ "applications": { "gecko": { "id": "adnauseam@rednoise.org", - "strict_min_version": "51.0", + "strict_min_version": "50.0", "strict_max_version": "52.*" } }, diff --git a/tools/make-webext.sh b/tools/make-webext.sh index 7ddef72983164..39d73e9e3c6ee 100755 --- a/tools/make-webext.sh +++ b/tools/make-webext.sh @@ -2,10 +2,10 @@ # # This script assumes a linux environment -echo "*** uBlock0.webext: Creating web store package" -echo "*** uBlock0.webext: Copying files" +echo "*** adnauseam.webext: Creating web store package" +echo "*** adnauseam.webext: Copying files" -DES=dist/build/uBlock0.webext +DES=bin/build/adnauseam.webext rm -rf $DES mkdir -p $DES @@ -29,7 +29,7 @@ cp platform/webext/polyfill.js $DES/js/ cp platform/webext/manifest.json $DES/ cp LICENSE.txt $DES/ -echo "*** uBlock0.webext: Generating meta..." +echo "*** adnauseam.webext: Generating meta..." # python tools/make-webext-meta.py $DES/ ADN: use our own version # diff --git a/tools/run-webext.sh b/tools/run-webext.sh new file mode 100755 index 0000000000000..72a1419474de0 --- /dev/null +++ b/tools/run-webext.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +FIREFOX_BIN=/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox-bin + +set -e + +tools/make-webext.sh + +cd bin/build/adnauseam.webext + +jpm -b ${FIREFOX_BIN} run --profile "${1:-default}" + +cd -