Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Fix build.sh build.sh script

天舟7a6a36b05ce6
diff --git a/scripts/build.sh b/scripts/build.sh
index b5fbaf360e..a97fc99f55 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -17,6 +17,7 @@ fi
if [ -z "$1" ];
then
+ mkdir -p bytebase-build
OUTPUT_DIR=$( cd bytebase-build &> /dev/null && pwd )
else
OUTPUT_DIR="$1"
@@ -45,7 +46,7 @@ echo "Step 1 - building bytebase frontend..."
if command -v yarn &> /dev/null
then
- yarn --cwd ./frontend release
+ yarn --cwd ./frontend && yarn --cwd ./frontend release
else
npm --prefix ./frontend run release
fi
diff --git a/scripts/build_bb.sh b/scripts/build_bb.sh
index 210c1bdc85..dcba97cfc1 100755
--- a/scripts/build_bb.sh
+++ b/scripts/build_bb.sh
@@ -17,6 +17,7 @@ fi
if [ -z "$1" ];
then
+ mkdir -p bytebase-build
OUTPUT_DIR=$( cd bytebase-build &> /dev/null && pwd )
else
OUTPUT_DIR="$1"