diff --git a/scripts/darwin-build.sh b/scripts/darwin-build.sh index 3b8d15fb3..e0f7b86a5 100755 --- a/scripts/darwin-build.sh +++ b/scripts/darwin-build.sh @@ -20,11 +20,11 @@ export CGO_ENABLED=1 export GOOS=darwin export GOARCH=amd64 -go build --tags fts5 -v -o "app/kernel-darwin/SiYuan-Kernel" -ldflags "-s -w" . +go build --tags fts5 -v -o "../app/kernel-darwin/SiYuan-Kernel" -ldflags "-s -w" . export GOOS=darwin export GOARCH=arm64 -go build --tags fts5 -v -o "app/kernel-darwin-arm64/SiYuan-Kernel" -ldflags "-s -w" . +go build --tags fts5 -v -o "../app/kernel-darwin-arm64/SiYuan-Kernel" -ldflags "-s -w" . cd .. echo 'Building Electron' diff --git a/scripts/linux-build.sh b/scripts/linux-build.sh index 96dd1e999..af9de3481 100755 --- a/scripts/linux-build.sh +++ b/scripts/linux-build.sh @@ -19,7 +19,7 @@ export CGO_ENABLED=1 export GOOS=linux export GOARCH=amd64 -go build --tags fts5 -v -o "app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w" . +go build --tags fts5 -v -o "../app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w" . cd .. echo 'Building Electron'