Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel
2026-05-17 15:41:03 +08:00
parent 5220026291
commit 657d6ee08c
4 changed files with 7 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ Caption "${PRODUCT_NAME} ${VERSION}"
!macro customInstall
RMDir /r "$PROFILE\AppData\Local\siyuan-updater"
nsExec::ExecToLog 'setx PATH "$INSTDIR;%PATH%"'
!macroend
!macro customUnInstall

View File

@@ -71,12 +71,14 @@ if [[ "$TARGET" == 'amd64' || "$TARGET" == 'all' ]]; then
echo 'Building Kernel amd64'
export GOARCH=amd64
go build -tags fts5 -o "../app/kernel-darwin/SiYuan-Kernel" -ldflags "-s -w" .
ln -f "../app/kernel-darwin/siyuan" "../app/kernel-darwin/SiYuan-Kernel"
fi
if [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; then
echo
echo 'Building Kernel arm64'
export GOARCH=arm64
go build -tags fts5 -o "../app/kernel-darwin-arm64/SiYuan-Kernel" -ldflags "-s -w" .
ln -f "../app/kernel-darwin-arm64/siyuan" "../app/kernel-darwin-arm64/SiYuan-Kernel"
fi
echo

View File

@@ -106,6 +106,7 @@ if [[ "$TARGET" == 'amd64' || "$TARGET" == 'all' ]]; then
export GOARCH=amd64
setup_cc amd64
go build -buildmode=pie -tags fts5 -o "../app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w -extldflags -static-pie" .
ln -f "../app/kernel-linux/siyuan" "../app/kernel-linux/SiYuan-Kernel"
fi
if [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; then
echo
@@ -113,6 +114,7 @@ if [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; then
export GOARCH=arm64
setup_cc arm64
go build -buildmode=pie -tags fts5 -o "../app/kernel-linux-arm64/SiYuan-Kernel" -ldflags "-s -w -extldflags -static-pie" .
ln -f "../app/kernel-linux-arm64/siyuan" "../app/kernel-linux-arm64/SiYuan-Kernel"
fi
echo

View File

@@ -105,6 +105,7 @@ if defined BUILD_AMD64 (
if errorlevel 1 (
exit /b %errorlevel%
)
mklink /H "%PROJECT_ROOT%\app\kernel\siyuan.exe" "%PROJECT_ROOT%\app\kernel\SiYuan-Kernel.exe"
)
if defined BUILD_ARM64 (
echo.
@@ -116,6 +117,7 @@ if defined BUILD_ARM64 (
if errorlevel 1 (
exit /b %errorlevel%
)
mklink /H "%PROJECT_ROOT%\app\kernel-arm64\siyuan.exe" "%PROJECT_ROOT%\app\kernel-arm64\SiYuan-Kernel.exe"
)
if defined BUILD_AMD64 goto electron