diff options
author | Florian Walch <florian@fwalch.com> | 2015-01-14 08:51:16 +0100 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2015-01-14 09:25:14 +0100 |
commit | 9e7909b62e42c854daa061a48909b569e72f23bb (patch) | |
tree | f28e32c7e61621e73f3aea990f221dbeab78737e /tools | |
parent | c9322e4e622d65f3dc4eb96c8e37a778a011e9e3 (diff) | |
download | uBlock-9e7909b62e42c854daa061a48909b569e72f23bb.zip uBlock-9e7909b62e42c854daa061a48909b569e72f23bb.tar.gz uBlock-9e7909b62e42c854daa061a48909b569e72f23bb.tar.bz2 |
Set up Travis releases.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/make-chromium.sh | 7 | ||||
-rwxr-xr-x | tools/make-firefox.sh | 11 |
2 files changed, 12 insertions, 6 deletions
diff --git a/tools/make-chromium.sh b/tools/make-chromium.sh index d5f1c95..cd5598e 100755 --- a/tools/make-chromium.sh +++ b/tools/make-chromium.sh @@ -22,4 +22,11 @@ cp platform/chromium/*.js $DES/js/ cp platform/chromium/manifest.json $DES/ cp LICENSE.txt $DES/ +if [ "$1" = all ]; then + echo "*** uBlock.chromium: Creating package..." + pushd $(dirname $DES/) + zip uBlock.chromium.zip -qr $(basename $DES/)/* + popd +fi + echo "*** uBlock.chromium: Package done." diff --git a/tools/make-firefox.sh b/tools/make-firefox.sh index 52d5c9d..eac6870 100755 --- a/tools/make-firefox.sh +++ b/tools/make-firefox.sh @@ -2,10 +2,10 @@ # # This script assumes a linux environment -echo "*** uBlock_xpi: Copying files" +echo "*** uBlock.firefox: Copying files" # use underscore instead of a dot! -DES=dist/build/uBlock_xpi +DES=dist/build/uBlock.firefox rm -r $DES mkdir -p $DES @@ -25,15 +25,14 @@ cp platform/firefox/chrome.manifest $DES/ cp platform/firefox/install.rdf $DES/ cp LICENSE.txt $DES/ -echo "*** uBlock_xpi: Generating meta..." +echo "*** uBlock.firefox: Generating meta..." python tools/make-firefox-meta.py $DES/ - if [ "$1" = all ]; then - echo "*** uBlock_xpi: Creating package..." + echo "*** uBlock.firefox: Creating package..." pushd $DES/ zip ../uBlock.firefox.xpi -qr * popd fi -echo "*** uBlock_xpi: Package done." +echo "*** uBlock.firefox: Package done." |