mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
Merge pull request #496 from fwalch/travis-releases
Set up Travis releases.
This commit is contained in:
commit
240ef0d228
16
.travis.yml
Normal file
16
.travis.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
sudo: false
|
||||||
|
env:
|
||||||
|
matrix:
|
||||||
|
- BROWSER=chromium EXT=zip
|
||||||
|
- BROWSER=firefox EXT=xpi
|
||||||
|
script: ./tools/make-${BROWSER}.sh all
|
||||||
|
deploy:
|
||||||
|
provider: releases
|
||||||
|
api_key:
|
||||||
|
secure: TODO: your key here!
|
||||||
|
file: dist/build/uBlock.${BROWSER}.${EXT}
|
||||||
|
skip_cleanup: true
|
||||||
|
on:
|
||||||
|
repo: gorhill/uBlock
|
||||||
|
tags: true
|
||||||
|
all_branches: true
|
@ -22,4 +22,11 @@ cp platform/chromium/*.js $DES/js/
|
|||||||
cp platform/chromium/manifest.json $DES/
|
cp platform/chromium/manifest.json $DES/
|
||||||
cp LICENSE.txt $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."
|
echo "*** uBlock.chromium: Package done."
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
#
|
#
|
||||||
# This script assumes a linux environment
|
# This script assumes a linux environment
|
||||||
|
|
||||||
echo "*** uBlock_xpi: Copying files"
|
echo "*** uBlock.firefox: Copying files"
|
||||||
|
|
||||||
# use underscore instead of a dot!
|
# use underscore instead of a dot!
|
||||||
DES=dist/build/uBlock_xpi
|
DES=dist/build/uBlock.firefox
|
||||||
rm -r $DES
|
rm -r $DES
|
||||||
mkdir -p $DES
|
mkdir -p $DES
|
||||||
|
|
||||||
@ -25,15 +25,14 @@ cp platform/firefox/chrome.manifest $DES/
|
|||||||
cp platform/firefox/install.rdf $DES/
|
cp platform/firefox/install.rdf $DES/
|
||||||
cp LICENSE.txt $DES/
|
cp LICENSE.txt $DES/
|
||||||
|
|
||||||
echo "*** uBlock_xpi: Generating meta..."
|
echo "*** uBlock.firefox: Generating meta..."
|
||||||
python tools/make-firefox-meta.py $DES/
|
python tools/make-firefox-meta.py $DES/
|
||||||
|
|
||||||
|
|
||||||
if [ "$1" = all ]; then
|
if [ "$1" = all ]; then
|
||||||
echo "*** uBlock_xpi: Creating package..."
|
echo "*** uBlock.firefox: Creating package..."
|
||||||
pushd $DES/
|
pushd $DES/
|
||||||
zip ../uBlock.firefox.xpi -qr *
|
zip ../uBlock.firefox.xpi -qr *
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "*** uBlock_xpi: Package done."
|
echo "*** uBlock.firefox: Package done."
|
||||||
|
Loading…
Reference in New Issue
Block a user