mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Support Linux arm64 https://github.com/siyuan-note/siyuan/issues/11566
This commit is contained in:
parent
6aa9640c2b
commit
5cf02f67d9
3 changed files with 66 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue