Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674

Daniel74718978fba0
diff --git a/app/nsis/installer.nsh b/app/nsis/installer.nsh
index 5265bc98ec..43bc850a3d 100644
--- a/app/nsis/installer.nsh
+++ b/app/nsis/installer.nsh
@@ -32,7 +32,7 @@ Caption "${PRODUCT_NAME} ${VERSION}"
!macro customInstall
RMDir /r "$PROFILE\AppData\Local\siyuan-updater"
- nsExec::ExecToLog 'setx PATH "$INSTDIR;%PATH%"'
+ nsExec::ExecToLog 'setx PATH "$INSTDIR\resources\kernel;%PATH%"'
!macroend
!macro customUnInstall
diff --git a/kernel/cli/cmd/root.go b/kernel/cli/cmd/root.go
index 53624342e1..85d6fa2896 100644
--- a/kernel/cli/cmd/root.go
+++ b/kernel/cli/cmd/root.go
@@ -21,6 +21,7 @@ import (
"os"
"path/filepath"
"runtime"
+ "strings"
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/model"
@@ -106,6 +107,7 @@ func findAppDir() string {
}
func init() {
+ rootCmd.Use = strings.TrimSuffix(filepath.Base(os.Args[0]), ".exe")
rootCmd.Short = "SiYuan Kernel v" + util.Ver
rootCmd.Long = "SiYuan Kernel v" + util.Ver + ". Manage workspace data directly or start the HTTP server."