An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Update build scripts
Daniel5ec27681f97e
diff --git a/scripts/darwin-build.sh b/scripts/darwin-build.shindex d6dea75a9e..8fe5bc1f17 100755--- a/scripts/darwin-build.sh+++ b/scripts/darwin-build.sh@@ -18,10 +18,12 @@ export GO111MODULE=onexport GOPROXY=https://goproxy.ioexport CGO_ENABLED=1+echo 'Building Kernel amd64'export GOOS=darwinexport GOARCH=amd64go build --tags fts5 -v -o "../app/kernel-darwin/SiYuan-Kernel" -ldflags "-s -w" .+echo 'Building Kernel arm64'export GOOS=darwinexport GOARCH=arm64go build --tags fts5 -v -o "../app/kernel-darwin-arm64/SiYuan-Kernel" -ldflags "-s -w" .diff --git a/scripts/linux-build.sh b/scripts/linux-build.shindex 2e8df5a6f0..c89f414ff9 100755--- a/scripts/linux-build.sh+++ b/scripts/linux-build.sh@@ -18,10 +18,12 @@ export GO111MODULE=onexport GOPROXY=https://goproxy.ioexport CGO_ENABLED=1+echo 'Building Kernel amd64'export GOOS=linuxexport GOARCH=amd64go build --tags fts5 -v -o "../app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w" .+echo 'Building Kernel arm64'export GOARCH=arm64export CC=~/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gccgo build --tags fts5 -v -o "../app/kernel-linux-arm64/SiYuan-Kernel-arm64" -ldflags "-s -w" .diff --git a/scripts/win-build.bat b/scripts/win-build.batindex 00ec75e3d2..521aaa8f94 100644--- a/scripts/win-build.bat+++ b/scripts/win-build.bat@@ -27,6 +27,7 @@ cd kernel@REM you can use `go generate` instead (need add something in main.go)goversioninfo -platform-specific=true -icon=resource/icon.ico -manifest=resource/goversioninfo.exe.manifest+echo 'Building Kernel amd64'set GOOS=windowsset GOARCH=amd64go build --tags fts5 -v -o "../app/kernel/SiYuan-Kernel.exe" -ldflags "-s -w -H=windowsgui" .@@ -34,6 +35,7 @@ if errorlevel 1 (exit /b %errorlevel%)+echo 'Building Kernel arm64'set GOARCH=arm64@REM if you want to build arm64, you need to install aarch64-w64-mingw32-gccset CC="D:/Program Files/llvm-mingw-20240518-ucrt-x86_64/bin/aarch64-w64-mingw32-gcc.exe"