Package standalone app and automate MySQL setup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user