diff options
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -5,3 +5,18 @@ install: | |||
5 | 5 | ||
6 | clean: | 6 | clean: |
7 | rm -rf vendor | 7 | rm -rf vendor |
8 | |||
9 | release_version = $(shell git describe --tags --always) | ||
10 | release_file = front_$(release_version).tar.gz | ||
11 | folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/front | ||
12 | |||
13 | build_release: | ||
14 | git archive HEAD -o $(release_file) | ||
15 | mv $(release_file) $(folder) | ||
16 | @echo "====== Version information ======" | ||
17 | @echo "$(release_version)" | ||
18 | @echo -n "sha256: " | ||
19 | @sha256sum $(folder)/$(release_file) | cut -d' ' -f1 | ||
20 | @echo "=================================" | ||
21 | |||
22 | |||