1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-21 18:02:34 +01:00

Fine tune build steps

This commit is contained in:
Raymond Hill 2022-09-07 10:23:40 -04:00
parent 224410a6f5
commit f7205fe2e4
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
3 changed files with 18 additions and 14 deletions

View File

@ -45,10 +45,9 @@ jobs:
tools/make-firefox.sh ${{ steps.release_info.outputs.VERSION }}
tools/make-thunderbird.sh ${{ steps.release_info.outputs.VERSION }}
tools/make-npm.sh ${{ steps.release_info.outputs.VERSION }}
tools/make-mv3.sh all
- name: Build MV3 packages
run: |
tools/make-mv3.sh
tools/make-mv3.sh all
echo ::set-output name=MV3PACKAGE::$(basename $(ls dist/build/uBlock0_*.mv3.zip))
- name: Upload Chromium package
uses: actions/upload-release-asset@v1

View File

@ -57,6 +57,9 @@ mv3: tools/make-mv3.sh $(sources) $(platform)
mv3-quick: tools/make-mv3.sh $(sources) $(platform)
tools/make-mv3.sh quick
mv3-full: tools/make-mv3.sh $(sources) $(platform)
tools/make-mv3.sh all
# Update submodules.
update-submodules:

View File

@ -53,15 +53,17 @@ fi
echo "*** uBlock0.mv3: extension ready"
echo "Extension location: $DES/"
echo "*** uBlock0.mv3: Creating webstore package..."
PACKAGENAME=uBlock0_$(jq -r .version $DES/manifest.json).mv3.zip
TMPDIR=$(mktemp -d)
mkdir -p $TMPDIR
cp -R $DES/* $TMPDIR/
cd $TMPDIR > /dev/null
rm log.txt
zip $PACKAGENAME -qr ./*
cp $PACKAGENAME $(dirname $DES/)/
cd - > /dev/null
rm -rf $TMPDIR
echo "Package location: $(pwd)/$PACKAGENAME"
if [ "$1" = "all" ]; then
echo "*** uBlock0.mv3: Creating webstore package..."
PACKAGENAME=uBlock0_$(jq -r .version $DES/manifest.json).mv3.zip
TMPDIR=$(mktemp -d)
mkdir -p $TMPDIR
cp -R $DES/* $TMPDIR/
cd $TMPDIR > /dev/null
rm log.txt
zip $PACKAGENAME -qr ./*
cp $PACKAGENAME $(dirname $DES/)/
cd - > /dev/null
rm -rf $TMPDIR
echo "Package location: $(pwd)/$PACKAGENAME"
fi