dev: added makefile to build release files (#11284)

Co-authored-by: Hugh Kaznowski <raat_streetcam@simplelogin.com>
This commit is contained in:
Przemyslaw Hugh Kaznowski 2023-10-10 08:47:09 +01:00 committed by GitHub
parent ac4dae5061
commit 74b577fa73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

4
.gitignore vendored
View file

@ -126,3 +126,7 @@ build-output.log
# Visual Studio Code
.history
# Makefile
.env
deploy/

24
Makefile Normal file
View file

@ -0,0 +1,24 @@
include .env
# The target directory is used for setting where the output zip files will end up
# You can override this with an environment variable, ex
# TARGET_DIR=my_custom_directory make deploy
# Alternatively, you can set this variable in the .env file
TARGET_DIR ?= deploy/
# Note that the proper install script is located under ./Utils/build-and-package.pl
# and that should be used instead. This script is purely for convenience.
# The perl script bundles the artifacts into a single zip
.PHONY: install
install:
# Building project
mvn clean install package -DskipTests
# Packaging Mage.Client to zip
cd Mage.Client && mvn assembly:assembly
# Packaging Mage.Server to zip
cd Mage.Server && mvn assembly:assembly
# Copying the files to the target directory
mkdir -p $(TARGET_DIR)
cp ./Mage.Server/target/mage-server.zip $(TARGET_DIR)
cp ./Mage.Client/target/mage-client.zip $(TARGET_DIR)