From 6ff8e49cf65070074a34c7527b2d24d6865112c8 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 15 Aug 2025 14:16:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0README=E5=92=8Cpkg.sh?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E5=8D=87=E6=9E=84=E5=BB=BA=E6=8C=87=E5=8D=97?= =?UTF-8?q?=E5=92=8C=E8=BE=93=E5=87=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 ++++++++----------- pkg.sh | 4 +++- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0fd7102..3f51b8e 100644 --- a/README.md +++ b/README.md @@ -6,21 +6,18 @@ OS: Ubuntu 18.04 / 22.04 (Recommendation) Arch: amd64 -Golang: go1.22.1 linux/amd64 - Database: 10.6.16-MariaDB, Redis server v=5.0.5 (or above) -node.js: v18.16.0 (or above) +- Golang: go1.24.2 linux/amd64 +- node.js: v20.18.0 (or above) ## Build Guide ```bash -git clone https://xxx@bitbucket.org/bluearcuscom/ems.git omc.git -cd omc.git -git pull -cd fe.ems.vue3 -npm install -npm run build -cd ../build.ems -./build.sh deb +# pwd +cd /root/omc.git +# ls +# be.ems build.ems fe.ems.vue3 +cp build.ems/pkg.sh . +bash pkg.sh --web --api -v 2.2508.1 ``` diff --git a/pkg.sh b/pkg.sh index 093a293..793e92c 100644 --- a/pkg.sh +++ b/pkg.sh @@ -62,6 +62,7 @@ if [ -n "$BuildWeb" ]; then npm install --registry https://registry.npmmirror.com npm run build + echo "===> build web directory: $WebDir" fi # =================== Api @@ -79,7 +80,8 @@ if [ -n "$BuildApi" ]; then cd $ApiDir/$procName echo "Make $procName ..." make - done + done + echo "===> build api directory: $ApiDir" fi # =================== ba deb