From 1ff04d3e1e147c1bbcc92779eda79624eaeb916c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Thu, 28 Sep 2023 12:16:38 +0200 Subject: [PATCH] fixup! add release generator script --- docker/scripts/release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/scripts/release.sh b/docker/scripts/release.sh index 93c4de1..f87e1fd 100755 --- a/docker/scripts/release.sh +++ b/docker/scripts/release.sh @@ -12,9 +12,9 @@ echo "Updating version info..." VERSION=$(git describe --tags --always --match "Release_*" HEAD) REVISION=$(git rev-parse --short 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 REVISION = '(.*)';/const REVISION = '${REVISION}';/" main.php -sed -i -E "s/const REVISION_DATE = '(.*)';/const REVISION_DATE = '${REVISION_DATE}';/" main.php +sed -i -E "s/const VERSION = '(.*)';/const VERSION = '${VERSION}';/" app.php +sed -i -E "s/const REVISION = '(.*)';/const REVISION = '${REVISION}';/" app.php +sed -i -E "s/const REVISION_DATE = '(.*)';/const REVISION_DATE = '${REVISION_DATE}';/" app.php echo "Minifying JS, CSS and SVG files..." find public/static/js -type f -iname '*.js' -exec uglifyjs {} -c -m -o {} \;