fixup! add release generator script
Some checks failed
rvr-nextgen/pipeline/pr-master There was a failure building this commit

This commit is contained in:
Bence Pőcze 2023-09-28 12:16:38 +02:00
parent fdd1fa50ff
commit 1ff04d3e1e
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -12,9 +12,9 @@ echo "Updating version info..."
VERSION=$(git describe --tags --always --match "Release_*" HEAD) VERSION=$(git describe --tags --always --match "Release_*" HEAD)
REVISION=$(git rev-parse --short HEAD) REVISION=$(git rev-parse --short HEAD)
REVISION_DATE=$(git show -s --format=%aI HEAD) REVISION_DATE=$(git show -s --format=%aI HEAD)
sed -i -E "s/const VERSION = '(.*)';/const VERSION = '${VERSION}';/" main.php sed -i -E "s/const VERSION = '(.*)';/const VERSION = '${VERSION}';/" app.php
sed -i -E "s/const REVISION = '(.*)';/const REVISION = '${REVISION}';/" main.php sed -i -E "s/const REVISION = '(.*)';/const REVISION = '${REVISION}';/" app.php
sed -i -E "s/const REVISION_DATE = '(.*)';/const REVISION_DATE = '${REVISION_DATE}';/" main.php sed -i -E "s/const REVISION_DATE = '(.*)';/const REVISION_DATE = '${REVISION_DATE}';/" app.php
echo "Minifying JS, CSS and SVG files..." echo "Minifying JS, CSS and SVG files..."
find public/static/js -type f -iname '*.js' -exec uglifyjs {} -c -m -o {} \; find public/static/js -type f -iname '*.js' -exec uglifyjs {} -c -m -o {} \;