mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
feat(ui): if zui tag is not found for download, it now builds locally from the commit (#1318)
Signed-off-by: Ana-Roberta Lisca <ana.kagome@yahoo.com>
This commit is contained in:
parent
5ad25126b7
commit
b679cd2e98
1 changed files with 18 additions and 3 deletions
21
Makefile
21
Makefile
|
@ -410,8 +410,23 @@ ui:
|
||||||
rm -rf ./pkg/extensions/build;\
|
rm -rf ./pkg/extensions/build;\
|
||||||
cp -R $$tdir/zui/build ./pkg/extensions/;\
|
cp -R $$tdir/zui/build ./pkg/extensions/;\
|
||||||
else\
|
else\
|
||||||
curl -fsSL https://github.com/project-zot/zui/releases/download/$(ZUI_VERSION)/zui.tgz -o zui.tgz;\
|
curl --fail --head https://github.com/project-zot/zui/releases/download/$(ZUI_VERSION)/zui.tgz;\
|
||||||
tar xvzf zui.tgz -C ./pkg/extensions/;\
|
if [ $$? -ne 0 ]; then\
|
||||||
rm zui.tgz;\
|
pwd=$$(pwd);\
|
||||||
|
tdir=$$(mktemp -d);\
|
||||||
|
cd $$tdir;\
|
||||||
|
git clone --depth=1 --branch $(ZUI_VERSION) https://github.com/project-zot/zui.git;\
|
||||||
|
cd zui;\
|
||||||
|
git checkout $(ZUI_VERSION);\
|
||||||
|
npm install;\
|
||||||
|
npm run build;\
|
||||||
|
cd $$pwd;\
|
||||||
|
rm -rf ./pkg/extensions/build;\
|
||||||
|
cp -R $$tdir/zui/build ./pkg/extensions/;\
|
||||||
|
else\
|
||||||
|
curl -fsSL https://github.com/project-zot/zui/releases/download/$(ZUI_VERSION)/zui.tgz -o zui.tgz;\
|
||||||
|
tar xvzf zui.tgz -C ./pkg/extensions/;\
|
||||||
|
rm zui.tgz;\
|
||||||
|
fi;\
|
||||||
fi;\
|
fi;\
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue