From 143860cd04ed65f21642e3a3f747ecc7a04e4b53 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Wed, 11 Sep 2024 11:30:55 +0200 Subject: [PATCH] Include build directory instead of listing practically all the files --- bin/build-plugin-zip.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/bin/build-plugin-zip.sh b/bin/build-plugin-zip.sh index 4ba931c4a4aeb6..dac806123147c1 100755 --- a/bin/build-plugin-zip.sh +++ b/bin/build-plugin-zip.sh @@ -78,18 +78,6 @@ 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 \ @@ -97,7 +85,7 @@ zip -r gutenberg.zip \ lib \ packages/block-serialization-default-parser/*.php \ post-content.php \ - $build_files \ + build \ readme.txt \ changelog.txt \ README.md