summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-05-17 13:09:31 +0200
committerHarald Eilertsen <haraldei@anduin.net>2023-05-17 13:09:31 +0200
commita94807b6f56e23b841ad68da50e6393199659f1b (patch)
tree0e355fd03666e4249cfa8eb7fe7f51ad2b384fd2
parent6b98093dfcfa051d2d73b78afdff7521df7387e0 (diff)
downloadgigologadmin-a94807b6f56e23b841ad68da50e6393199659f1b.tar.gz
gigologadmin-a94807b6f56e23b841ad68da50e6393199659f1b.tar.bz2
gigologadmin-a94807b6f56e23b841ad68da50e6393199659f1b.zip
Added a simple build script to make releases.HEADdev
-rw-r--r--.gitignore1
-rwxr-xr-xbuild-release.sh18
2 files changed, 19 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 11d9513..5f4a2d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
node_modules
/vendor/
+build/
diff --git a/build-release.sh b/build-release.sh
new file mode 100755
index 0000000..74a79d1
--- /dev/null
+++ b/build-release.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+#
+
+[[ -d ./build ]] || mkdir build
+
+pushd build
+
+[[ -d ./giglogadmin ]] && rm -rf giglogadmin
+
+git clone .. giglogadmin
+pushd giglogadmin
+composer install --no-dev
+popd
+
+archive="giglogadmin.$(git describe).zip"
+[[ -f $archive ]] && rm $archive
+zip -9r $archive giglogadmin/{assets,includes,LICENSES,vendor,giglogadmin.php}
+popd