Fix packaging/publishing scripts

This commit is contained in:
Raymond Hill 2019-12-25 09:30:34 -05:00
parent 17430ded93
commit 035f3f53a2
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
3 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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."

View File

@ -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."