chore: ui-xx.zip

This commit is contained in:
xiaojunnuo
2025-12-30 00:32:57 +08:00
parent 6a43b44087
commit 126c0c6ad6
5 changed files with 10 additions and 6 deletions

View File

@@ -57,16 +57,18 @@ echo "构建完成"
echo "下载前端ui"
# 如果zip有了就不下载
if [ -f ui-$version.zip ]; then
if [ -f ./ui-$version.zip ]; then
echo "ui-$version.zip 已经存在,不需要下载"
else
echo "ui-$version.zip 不存在,开始下载"
# 下载之前清理一下
rm -rf ui-*.zip
# https://atomgit.com/certd/certd/releases/download/v1.37.16/ui-1.37.16.zip
# 判断是否下载失败
wget https://atomgit.com/certd/certd/releases/download/v$version/ui-$version.zip
fi
# 覆盖解压缩
unzip -o ui-$version.zip -d ./public
unzip -o -q ui-$version.zip -d ./public
echo "启动服务"