Skip to content

Commit

Permalink
Include build directory instead of listing practically all the files
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Sep 11, 2024
1 parent 07c7821 commit 143860c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions bin/build-plugin-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,14 @@ npm run build
php bin/generate-gutenberg-php.php > gutenberg.tmp.php
mv gutenberg.tmp.php gutenberg.php

build_files=$(
ls build/*/*.{js,js.map,css,asset.php} \
build/block-library/blocks/*.php \
build/block-library/blocks/*/block.json \
build/block-library/blocks/*/*.{js,js.map,css,asset.php} \
build/edit-widgets/blocks/*/block.json \
build/widgets/blocks/*.php \
build/widgets/blocks/*/block.json \
build/style-engine/*.php \
)


# Generate the plugin zip file.
status "Creating archive... 🎁"
zip -r gutenberg.zip \
gutenberg.php \
lib \
packages/block-serialization-default-parser/*.php \
post-content.php \
$build_files \
build \
readme.txt \
changelog.txt \
README.md
Expand Down

0 comments on commit 143860c

Please sign in to comment.