mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Support Linux arm64 https://github.com/siyuan-note/siyuan/issues/11566
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user