This commit is contained in:
Daniel 2024-06-01 23:32:52 +08:00
parent baaec946ee
commit 7d8759a470
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -21,12 +21,12 @@ export CGO_ENABLED=1
echo 'Building Kernel amd64'
export GOOS=linux
export GOARCH=amd64
go build --tags fts5 -v -o "../app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w" .
go build -buildmode=pie --tags fts5 -v -o "../app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w -extldflags -static-pie" .
echo 'Building Kernel arm64'
export GOARCH=arm64
export CC=~/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc
go build --tags fts5 -v -o "../app/kernel-linux-arm64/SiYuan-Kernel" -ldflags "-s -w" .
go build -buildmode=pie --tags fts5 -v -o "../app/kernel-linux-arm64/SiYuan-Kernel" -ldflags "-s -w -extldflags -static-pie" .
cd ..
echo 'Building Electron App amd64'