Skip to content

Commit

Permalink
🎨 Support Linux arm64 #11566
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jun 1, 2024
1 parent baaec94 commit 7d8759a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 7d8759a

Please sign in to comment.