This commit is contained in:
Daniel 2024-05-28 23:40:32 +08:00
parent 6aa9640c2b
commit 5cf02f67d9
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 66 additions and 1 deletions

View file

@ -8,6 +8,7 @@ cd ..
echo 'Cleaning Builds'
rm -rf app/build
rm -rf app/kernel-linux
rm -rf app/kernel-linux-arm64
echo 'Building Kernel'
@ -20,6 +21,10 @@ export CGO_ENABLED=1
export GOOS=linux
export GOARCH=amd64
go build --tags fts5 -v -o "../app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w" .
export GOARCH=arm64
export CC=~/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc
go build --tags fts5 -v -o "../app/kernel-linux/SiYuan-Kernel-arm64" -ldflags "-s -w" .
cd ..
echo 'Building Electron App'