mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 04:02:58 +08:00
🎨 Support arm64 arch https://github.com/siyuan-note/siyuan/issues/11566 https://github.com/siyuan-note/siyuan/issues/11565
This commit is contained in:
parent
b90ef06715
commit
25d0f28622
@ -26,7 +26,7 @@ go build --tags fts5 -v -o "../app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w"
|
|||||||
echo 'Building Kernel arm64'
|
echo 'Building Kernel arm64'
|
||||||
export GOARCH=arm64
|
export GOARCH=arm64
|
||||||
export CC=~/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc
|
export CC=~/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc
|
||||||
go build --tags fts5 -v -o "../app/kernel-linux-arm64/SiYuan-Kernel-arm64" -ldflags "-s -w" .
|
go build --tags fts5 -v -o "../app/kernel-linux-arm64/SiYuan-Kernel" -ldflags "-s -w" .
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo 'Building Electron App amd64'
|
echo 'Building Electron App amd64'
|
||||||
|
@ -39,7 +39,7 @@ echo 'Building Kernel arm64'
|
|||||||
set GOARCH=arm64
|
set GOARCH=arm64
|
||||||
@REM if you want to build arm64, you need to install aarch64-w64-mingw32-gcc
|
@REM if you want to build arm64, you need to install aarch64-w64-mingw32-gcc
|
||||||
set CC="D:/Program Files/llvm-mingw-20240518-ucrt-x86_64/bin/aarch64-w64-mingw32-gcc.exe"
|
set CC="D:/Program Files/llvm-mingw-20240518-ucrt-x86_64/bin/aarch64-w64-mingw32-gcc.exe"
|
||||||
go build --tags fts5 -v -o "../app/kernel-arm64/SiYuan-Kernel-arm64.exe" -ldflags "-s -w -H=windowsgui" .
|
go build --tags fts5 -v -o "../app/kernel-arm64/SiYuan-Kernel.exe" -ldflags "-s -w -H=windowsgui" .
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
exit /b %errorlevel%
|
exit /b %errorlevel%
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user