From 9977b140dc2929b59d1502b76c66e313ebd0730d Mon Sep 17 00:00:00 2001 From: liuximu <295421489@qq.com> Date: Tue, 19 Oct 2021 15:16:12 +0800 Subject: [PATCH] version 0.0.1 commit --- build.sh | 18 ++++++++++++++---- docs/zh-cn/deploy.md | 4 ++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index 815d5cf..7af3eb3 100644 --- a/build.sh +++ b/build.sh @@ -30,9 +30,19 @@ if [ $? -ne 0 ]; then fi echo "npm build success" -mv noahv output -rm output/static/*/*.gz -cp version.txt output/ +echo "pack start" +rm noahv/static/*/*.gz +cp version.txt noahv/ +cp -r docs noahv/ +cp -r README.md noahv/ +mkdir output +mv noahv "bfe_dashboard_${version}" +mv "bfe_dashboard_${version}" output/ +cd output +tar -czvf "bfe_dashboard_${version}.tar.gz" "bfe_dashboard_${version}" +shasum -a 256 "bfe_dashboard_${version}.tar.gz" > "bfe_dashboard_${version}_checksums.txt" +rm -rf "bfe_dashboard_${version}" +echo "pack success" echo "build success" -exit 0; +exit 0; \ No newline at end of file diff --git a/docs/zh-cn/deploy.md b/docs/zh-cn/deploy.md index df845bf..f1f93e6 100644 --- a/docs/zh-cn/deploy.md +++ b/docs/zh-cn/deploy.md @@ -4,7 +4,7 @@ 产出的获取有多种方式 - 方式一:通过源码编译: clone [bfenetwork/dashboard](https://github.com/bfenetworks/dashboard) 仓库后进入项目根目录,执行 `sh build.sh`, output 文件夹就是静态文件 -- 方式二:直接进入 [dashboard/release](https://github.com/bfenetworks/dashboard/releases) 页面下载相应的编译产出 +- 方式二:直接进入 [dashboard/releases](https://github.com/bfenetworks/dashboard/releases) 页面下载相应的编译产出 若想进行二次开发或者提交PR,请参考 [项目开发指南](./develop.md)。 @@ -13,4 +13,4 @@ BFE Dashboard 依赖 [BFE API Server](https://github.com/bfenetworks/api-server)。部署Dashboard 之前应该完成 API Server的部署,详见[API Server 部署](https://github.com/bfenetworks/api-server/docs/zh_cn/deploy.md)。 -生成环境具体部署步骤为:将编译产出放入 API Server的静态文件夹中。 \ No newline at end of file +生产环境具体部署步骤为:将编译产出放入 API Server的静态文件夹中。 \ No newline at end of file