File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 33 matrix :
44 - BROWSER=chromium EXT=zip
55 - BROWSER=firefox EXT=xpi
6- script : ./tools/make-${BROWSER}.sh all
6+ script : " ./tools/make-${BROWSER}.sh ${TRAVIS_TAG} "
77deploy :
88 provider : releases
99 prerelease : true
1010 api_key :
1111 secure : eQgPAHH6PKu2dLK+NafxwLl66t0cyW5x5NZFquOwsNMal5nsfof7lyXj2F0Q0vUpGeI21MOipBI8UGv5oXPoiXnr0fhEbEBz65C9vypK61WkDCQVGVeZVNGQwSXUm6gD2EzpPgTCIs52+7dKCDJ3stXzdimOiOTYs4WMNKKarFM=
12- file : dist/build/uMatrix .${BROWSER}.${EXT}
12+ file : dist/build/uMatrix_${TRAVIS_TAG} .${BROWSER}.${EXT}
1313 skip_cleanup : true
1414 on :
1515 repo : gorhill/uMatrix
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ if [ "$1" = all ]; then
2626 pushd $( dirname $DES /)
2727 zip uMatrix.chromium.zip -qr $( basename $DES /) /*
2828 popd
29+ elif [ -n " $1 " ]; then
30+ echo " *** uMatrix.chromium: Creating versioned package..."
31+ pushd $( dirname $DES /) > /dev/null
32+ zip uMatrix_" $1 " .chromium.zip -qr $( basename $DES /) /*
33+ popd > /dev/null
2934fi
3035
3136echo " *** uMatrix(Chromium): Package done."
Original file line number Diff line number Diff line change 55echo " *** uMatrix.firefox: Creating web store package"
66echo " *** uMatrix.firefox: Copying files"
77
8- DES=dist/build/uMatrix.firefox
8+ BLDIR=dist/build
9+ DES=" $BLDIR " /uMatrix.firefox
910rm -rf $DES
1011mkdir -p $DES
1112
@@ -27,6 +28,12 @@ if [ "$1" = all ]; then
2728 pushd $DES > /dev/null
2829 zip ../$( basename $DES ) .xpi -qr *
2930 popd > /dev/null
31+ elif [ -n " $1 " ]; then
32+ echo " *** uMatrix.firefox: Creating versioned package..."
33+ pushd $DES > /dev/null
34+ zip ../$( basename $DES ) .xpi -qr *
35+ popd > /dev/null
36+ mv " $BLDIR " /uMatrix.firefox.xpi " $BLDIR " /uMatrix_" $1 " .firefox.xpi
3037fi
3138
3239echo " *** uMatrix.firefox: Package done."
You can’t perform that action at this time.
0 commit comments