31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-09 00:32:20 +00:00
patchtester/build/patchtester/build.sh
Roland Dalmulder 05929bb408
Prepare the 4.1.0 release
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
2021-05-02 12:38:00 +02:00

18 lines
675 B
Bash
Executable File

#!/bin/sh
cd ../../
rm -rf build/packaging && mkdir build/packaging
rm -rf build/packages && mkdir build/packages
composer install --no-dev -o
cp -r administrator/components/com_patchtester build/packaging/admin
cp -r media/com_patchtester build/packaging/media
rm -rf build/packaging/admin/backups/*.txt
mv build/packaging/admin/patchtester.xml build/packaging/patchtester.xml
mv build/packaging/admin/script.php build/packaging/script.php
cd build/packaging
tar jcf ../packages/com_patchtester_"$1".tar.bz2 .
tar zcf ../packages/com_patchtester_"$1".tar.gz .
zip -r ../packages/com_patchtester_"$1".zip .
cd ../../
composer install
php build/patchtester/hash_generator.php