Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:hammer: Update build scripts

Liang Dingdc46b478bc61
diff --git a/build-ui.bat b/build-ui.bat
deleted file mode 100644
index 72f0268223..0000000000
--- a/build-ui.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-echo 'Building UI'
-cd app
-call npm install && npm run build
-cd ..
diff --git a/build-ui.sh b/build-ui.sh
deleted file mode 100644
index 4ed3010e18..0000000000
--- a/build-ui.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-
-echo 'Building UI'
-cd app
-npm install && npm run build
-cd ..
diff --git a/darwin-build.sh b/scripts/darwin-build.sh
similarity index 92%
rename from darwin-build.sh
rename to scripts/darwin-build.sh
index 86100ab7df..76bf69a080 100644
--- a/darwin-build.sh
+++ b/scripts/darwin-build.sh
@@ -2,9 +2,10 @@
echo 'Building UI'
cd app
-npm run build
+npm install && npm run build
cd ..
+echo 'Cleaning Builds'
rm -rf app/build
rm -rf app/kernel-darwin
rm -rf app/kernel-darwin-arm64
diff --git a/linux-build.sh b/scripts/linux-build.sh
similarity index 81%
rename from linux-build.sh
rename to scripts/linux-build.sh
index 12cb730cef..96dd1e9998 100644
--- a/linux-build.sh
+++ b/scripts/linux-build.sh
@@ -1,7 +1,11 @@
#!/bin/bash
-./build-ui.sh
+echo 'Building UI'
+cd app
+npm install && npm run build
+cd ..
+echo 'Cleaning Builds'
rm -rf app/build
rm -rf app/kernel-linux
diff --git a/win-build.bat b/scripts/win-build.bat
similarity index 88%
rename from win-build.bat
rename to scripts/win-build.bat
index bcc1879828..d8e5337c47 100644
--- a/win-build.bat
+++ b/scripts/win-build.bat
@@ -1,4 +1,10 @@
+echo 'Building UI'
+cd app
+call npm install
+call npm run build
+cd ..
+echo 'Cleaning Builds'
del /S /Q /F app\build 1>nul
del /S /Q /F app\kernel 1>nul
del /S /Q /F app\kernel32 1>nul