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

@@ -76,7 +76,16 @@ def build_install_command(tool_name: str, version: str | None = None) -> list[st
package_id = WINGET_PACKAGES.get(tool_name)
if not package_id:
raise ValueError(f"\u4e0d\u652f\u6301\u81ea\u52a8\u5b89\u88c5: {tool_name}")
return ["winget", "install", "-e", "--id", package_id]
return [
"winget",
"install",
"--exact",
"--id",
package_id,
"--accept-source-agreements",
"--accept-package-agreements",
"--disable-interactivity",
]
def default_maven_install_root() -> Path: