Skip to content

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

:green_heart: Build script fix (#17747)

未来方舟915c118a67ee
diff --git a/scripts/darwin-build.sh b/scripts/darwin-build.sh
index eade268e3e..17dd90c7bc 100755
--- a/scripts/darwin-build.sh
+++ b/scripts/darwin-build.sh
@@ -71,14 +71,14 @@ if [[ "$TARGET" == 'amd64' || "$TARGET" == 'all' ]]; then
echo 'Building Kernel amd64'
export GOARCH=amd64
go 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"
fi
if [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; then
echo
echo 'Building Kernel arm64'
export GOARCH=arm64
go 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"
fi
echo
diff --git a/scripts/linux-build.sh b/scripts/linux-build.sh
index 93898528e7..d939317bed 100755
--- a/scripts/linux-build.sh
+++ b/scripts/linux-build.sh
@@ -106,7 +106,7 @@ if [[ "$TARGET" == 'amd64' || "$TARGET" == 'all' ]]; then
export GOARCH=amd64
setup_cc amd64
go 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"
fi
if [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; then
echo
@@ -114,7 +114,7 @@ if [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; then
export GOARCH=arm64
setup_cc arm64
go 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"
fi
echo