Package standalone app and automate MySQL setup

This commit is contained in:
王鹏
2026-10-09 08:22:29 +08:00
parent d1695eba74
commit 0e7f52e26a
8 changed files with 67 additions and 9 deletions

View File

@@ -366,10 +366,17 @@ class DeployWorkbench(tk.Tk):
except ValueError as exc:
messagebox.showwarning("暂不支持自动安装", str(exc))
return
mysql_note = ""
if tool_name == "MySQL":
mysql_note = (
"\n\n将安装 MySQL Community Server 及官方工具。首次安装后,请在部署配置中填写实际的 "
"root 用户密码;程序不会生成、保存或显示默认数据库密码。"
)
if not messagebox.askyesno(
f"确认安装 {tool_name}",
f"即将通过 winget 安装 {tool_name}。\n\n"
f"命令: {' '.join(command)}\n\n"
f"命令: {' '.join(command)}"
f"{mysql_note}\n\n"
"安装可能需要管理员权限,并可能修改 PATH。是否继续?",
):
return