Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Commit b705fbe

Browse files
authored
Merge pull request #16 from witoldsz/dist_a_zip
'make dist' creates a zip of frontend app
2 parents b10a7fc + 4bb525e commit b705fbe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,12 @@ build:
1111
clean:
1212
@cd front && make clean
1313
@cd server && make clean
14+
rm -rf dist
15+
16+
dist: $(shell find front/build -type f)
17+
rm -rf dist
18+
mkdir dist
19+
$(eval TIME := $(shell date '+%Y-%m-%d_%H-%M'))
20+
$(eval NAME := semux-light-${TIME})
21+
cp -R front/build dist/${NAME}
22+
cd dist && zip -rm9 ${NAME} ${NAME}

0 commit comments

Comments
 (0)