From f9511be44fad8985e2b573e43530a28b03bbe34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Anne?= Date: Thu, 24 Oct 2024 14:47:00 +0200 Subject: [PATCH] Clean release archive 1. Move the "user generated files" cleaning after the execution of the bin/console build:generate_code_manifest command. This command is generating cache files that must be cleaned. 2. Remove useless dev files/directories. 3. Remove `vue` components sources. --- tools/build_glpi.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tools/build_glpi.sh b/tools/build_glpi.sh index 8cf4e51b8db..60aab6fe23d 100755 --- a/tools/build_glpi.sh +++ b/tools/build_glpi.sh @@ -66,9 +66,6 @@ echo "Removing dev files and directories..." # Remove PHP dev dependencies that are not anymore used composer update nothing --ansi --no-interaction --ignore-platform-reqs --no-dev --no-scripts --working-dir=$WORKING_DIR -# Remove user generated files (i.e. cache and log from CLI commands ran during release) -find $WORKING_DIR/files -depth -mindepth 2 -exec rm -rf {} \; - # Remove hidden files and directories find $WORKING_DIR -depth -iname ".*" -exec rm -rf {} \; @@ -77,11 +74,17 @@ dev_nodes=( "composer.json" "composer.lock" "docker-compose.yaml" + "eslint.config.mjs" + "js/src/vue" + "jsconfig.json" "locales/glpi.pot" + "Makefile" "node_modules" "package.json" "package-lock.json" "phpstan.neon" + "phpstan.neon.dist" + "phpunit" "phpunit.xml.dist" "stubs" "tests" @@ -96,3 +99,7 @@ done echo "Generating file manifest..." $WORKING_DIR/bin/console build:generate_code_manifest -a crc32c + +echo "Removing user generated files..." +# Remove user generated files (i.e. cache and log from CLI commands ran during release) +find $WORKING_DIR/files -depth -mindepth 2 -exec rm -rf {} \;