Skip to content

Commit

Permalink
Clean release archive
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cedric-anne authored and trasher committed Oct 24, 2024
1 parent 6569463 commit f9511be
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tools/build_glpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {} \;

Expand All @@ -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"
Expand All @@ -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 {} \;

0 comments on commit f9511be

Please sign in to comment.