Skip to content

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

:art: Support HarmonyOS NEXT system

Daniel160143c27596
diff --git a/kernel/harmony/build-win.sh b/kernel/harmony/build-win.sh
index 1624420a9c..496c485996 100755
--- a/kernel/harmony/build-win.sh
+++ b/kernel/harmony/build-win.sh
@@ -5,6 +5,6 @@ export CGO_ENABLED=1
export GOOS=android
export GOARCH=amd64
export CC=/mnt/f/ohos-sdk-windows_linux-public/linux/native/llvm/bin/x86_64-unknown-linux-ohos-clang
-export CGO_FLAGS="-I/mnt/f/log-adaptor/include"
+export CGO_CFLAGS="-I/mnt/f/log-adaptor/include"
export CGO_LDFLAGS="-L/mnt/f/log-adaptor//dist/x86_64"
go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so .
diff --git a/kernel/harmony/build.sh b/kernel/harmony/build.sh
index d1026565fa..5ac8c9f247 100755
--- a/kernel/harmony/build.sh
+++ b/kernel/harmony/build.sh
@@ -5,6 +5,6 @@ export CGO_ENABLED=1
export GOOS=android
export GOARCH=arm64
export CC=/mnt/f/ohos-sdk-windows_linux-public/linux/native/llvm/bin/aarch64-unknown-linux-ohos-clang
-export CGO_FLAGS="-I/mnt/f/log-adaptor/include"
+export CGO_CFLAGS="-I/mnt/f/log-adaptor/include"
export CGO_LDFLAGS="-L/mnt/f/log-adaptor//dist/arm64-v8a"
go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so .