add release archive

This commit is contained in:
lxsang 2020-11-19 17:39:30 +01:00
parent cc4081f9a0
commit 43f96af920
2 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,8 @@ DOCDIR?=/opt/www/htdocs/doc/antos
BLUE=\033[1;34m BLUE=\033[1;34m
NC=\033[0m NC=\033[0m
VERSION=1.0.0
GSED=sed GSED=sed
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)
@ -189,6 +191,14 @@ uglify:
test -f $(BUILDDIR)/packages/$$d/main.css && uglifycss --output $(BUILDDIR)/packages/$$d/main.css $(BUILDDIR)/packages/$$d/main.css;\ test -f $(BUILDDIR)/packages/$$d/main.css && uglifycss --output $(BUILDDIR)/packages/$$d/main.css $(BUILDDIR)/packages/$$d/main.css;\
done done
ar:
-[ -d /tmp/antos-$(VERSION) ] && rm -r /tmp/antos-$(VERSION)
-[ -f /tmp/antos-$(VERSION).tar.gz ] && rm /tmp/antos-$(VERSION).tar.gz
mkdir /tmp/antos-$(VERSION)
BUILDDIR=/tmp/antos-$(VERSION) make release
cd /tmp/antos-$(VERSION) && tar cvzf ../antos-$(VERSION).tar.gz .
mv /tmp/antos-$(VERSION).tar.gz release/
release: main uglify release: main uglify
doc: doc:

BIN
release/antos-1.0.0.tar.gz Normal file

Binary file not shown.