diff --git a/openclaw/install.sh b/openclaw/install.sh index 06f84fb..e42b709 100644 --- a/openclaw/install.sh +++ b/openclaw/install.sh @@ -255,6 +255,7 @@ EOF fi log_info "配置文件已生成: ${CONFIG_FILE}" + echo -e "${GREEN}配置文件路径: ${CONFIG_FILE}${PLAIN}" } # 配置 Systemd 服务 diff --git a/openclaw/installer/installer.exe b/openclaw/installer/installer.exe index 7569266..dd89ba0 100644 Binary files a/openclaw/installer/installer.exe and b/openclaw/installer/installer.exe differ diff --git a/openclaw/installer/internal/ui/model.go b/openclaw/installer/internal/ui/model.go index dafc27c..3ad388f 100644 --- a/openclaw/installer/internal/ui/model.go +++ b/openclaw/installer/internal/ui/model.go @@ -2,6 +2,8 @@ package ui import ( "fmt" + "os" + "path/filepath" "strings" "time" @@ -96,7 +98,8 @@ type checkMsg struct { } type actionResultMsg struct { - err error + err error + successMsg string } type progressMsg string @@ -196,7 +199,11 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.actionErr = msg.err m.actionDone = true if msg.err == nil { - m.progressMsg = "操作成功完成!" + if msg.successMsg != "" { + m.progressMsg = msg.successMsg + } else { + m.progressMsg = "操作成功完成!" + } if m.actionType == ActionStartGateway { m.DidStartGateway = true } @@ -691,7 +698,13 @@ func runUninstallCmd() tea.Msg { func runSaveConfigCmd(opts sys.ConfigOptions) tea.Cmd { return func() tea.Msg { err := sys.GenerateAndWriteConfig(opts) - return actionResultMsg{err: err} + msg := "" + if err == nil { + userHome, _ := os.UserHomeDir() + path := filepath.Join(userHome, ".openclaw", "openclaw.json") + msg = fmt.Sprintf("配置文件路径: %s", path) + } + return actionResultMsg{err: err, successMsg: msg} } }