Skip to content

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

:art: Support HarmonyOS NEXT system

Daniel1036bc3f4a06
diff --git a/kernel/harmony/build-win.sh b/kernel/harmony/build-win.sh
index 329b66bffb..9f58d38501 100755
--- a/kernel/harmony/build-win.sh
+++ b/kernel/harmony/build-win.sh
@@ -5,4 +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_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 5b229fa1c4..20a8622d30 100755
--- a/kernel/harmony/build.sh
+++ b/kernel/harmony/build.sh
@@ -5,4 +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_LDFLAGS = "-L/mnt/f/log-adaptor//dist/arm64-v8a"
go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so .