An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:green_heart: Build script fix (#17747)
未来方舟915c118a67ee
diff --git a/scripts/darwin-build.sh b/scripts/darwin-build.shindex eade268e3e..17dd90c7bc 100755--- a/scripts/darwin-build.sh+++ b/scripts/darwin-build.sh@@ -71,14 +71,14 @@ if [[ "$TARGET" == 'amd64' || "$TARGET" == 'all' ]]; thenecho 'Building Kernel amd64'export GOARCH=amd64go build -tags fts5 -o "../app/kernel-darwin/SiYuan-Kernel" -ldflags "-s -w" .- ln -f "../app/kernel-darwin/siyuan" "../app/kernel-darwin/SiYuan-Kernel"+ ln -f "../app/kernel-darwin/SiYuan-Kernel" "../app/kernel-darwin/siyuan"fiif [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; thenechoecho 'Building Kernel arm64'export GOARCH=arm64go build -tags fts5 -o "../app/kernel-darwin-arm64/SiYuan-Kernel" -ldflags "-s -w" .- ln -f "../app/kernel-darwin-arm64/siyuan" "../app/kernel-darwin-arm64/SiYuan-Kernel"+ ln -f "../app/kernel-darwin-arm64/SiYuan-Kernel" "../app/kernel-darwin-arm64/siyuan"fiechodiff --git a/scripts/linux-build.sh b/scripts/linux-build.shindex 93898528e7..d939317bed 100755--- a/scripts/linux-build.sh+++ b/scripts/linux-build.sh@@ -106,7 +106,7 @@ if [[ "$TARGET" == 'amd64' || "$TARGET" == 'all' ]]; thenexport GOARCH=amd64setup_cc amd64go build -buildmode=pie -tags fts5 -o "../app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w -extldflags -static-pie" .- ln -f "../app/kernel-linux/siyuan" "../app/kernel-linux/SiYuan-Kernel"+ ln -f "../app/kernel-linux/SiYuan-Kernel" "../app/kernel-linux/siyuan"fiif [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; thenecho@@ -114,7 +114,7 @@ if [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; thenexport GOARCH=arm64setup_cc arm64go build -buildmode=pie -tags fts5 -o "../app/kernel-linux-arm64/SiYuan-Kernel" -ldflags "-s -w -extldflags -static-pie" .- ln -f "../app/kernel-linux-arm64/siyuan" "../app/kernel-linux-arm64/SiYuan-Kernel"+ ln -f "../app/kernel-linux-arm64/SiYuan-Kernel" "../app/kernel-linux-arm64/siyuan"fiecho