mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-06-28 06:46:12 +00:00
✨ Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user