Browse Source

Fix packaging/publishing scripts

pull/2/head
Raymond Hill 4 years ago
parent
commit
035f3f53a2
No known key found for this signature in database GPG Key ID: 25E1490B761470C2
  1. 4
      .travis.yml
  2. 5
      tools/make-chromium.sh
  3. 9
      tools/make-firefox.sh

4
.travis.yml

@ -3,13 +3,13 @@ env:
matrix:
- BROWSER=chromium EXT=zip
- BROWSER=firefox EXT=xpi
script: ./tools/make-${BROWSER}.sh all
script: "./tools/make-${BROWSER}.sh ${TRAVIS_TAG}"
deploy:
provider: releases
prerelease: true
api_key:
secure: eQgPAHH6PKu2dLK+NafxwLl66t0cyW5x5NZFquOwsNMal5nsfof7lyXj2F0Q0vUpGeI21MOipBI8UGv5oXPoiXnr0fhEbEBz65C9vypK61WkDCQVGVeZVNGQwSXUm6gD2EzpPgTCIs52+7dKCDJ3stXzdimOiOTYs4WMNKKarFM=
file: dist/build/uMatrix.${BROWSER}.${EXT}
file: dist/build/uMatrix_${TRAVIS_TAG}.${BROWSER}.${EXT}
skip_cleanup: true
on:
repo: gorhill/uMatrix

5
tools/make-chromium.sh

@ -26,6 +26,11 @@ if [ "$1" = all ]; then
pushd $(dirname $DES/)
zip uMatrix.chromium.zip -qr $(basename $DES/)/*
popd
elif [ -n "$1" ]; then
echo "*** uMatrix.chromium: Creating versioned package..."
pushd $(dirname $DES/) > /dev/null
zip uMatrix_"$1".chromium.zip -qr $(basename $DES/)/*
popd > /dev/null
fi
echo "*** uMatrix(Chromium): Package done."

9
tools/make-firefox.sh

@ -5,7 +5,8 @@
echo "*** uMatrix.firefox: Creating web store package"
echo "*** uMatrix.firefox: Copying files"
DES=dist/build/uMatrix.firefox
BLDIR=dist/build
DES="$BLDIR"/uMatrix.firefox
rm -rf $DES
mkdir -p $DES
@ -27,6 +28,12 @@ if [ "$1" = all ]; then
pushd $DES > /dev/null
zip ../$(basename $DES).xpi -qr *
popd > /dev/null
elif [ -n "$1" ]; then
echo "*** uMatrix.firefox: Creating versioned package..."
pushd $DES > /dev/null
zip ../$(basename $DES).xpi -qr *
popd > /dev/null
mv "$BLDIR"/uMatrix.firefox.xpi "$BLDIR"/uMatrix_"$1".firefox.xpi
fi
echo "*** uMatrix.firefox: Package done."
Loading…
Cancel
Save