MCPcopy
hub / github.com/MaaEnd/MaaEnd / bootstrap_maadeps

Function bootstrap_maadeps

tools/setup_workspace.py:169–180  ·  view source on GitHub ↗

下载 MaaDeps 预编译依赖

(skip_if_exist: bool = True)

Source from the content-addressed store, hash-verified

167
168
169def bootstrap_maadeps(skip_if_exist: bool = True) -> bool:
170 """下载 MaaDeps 预编译依赖"""
171 maadeps_dir = (
172 PROJECT_BASE / "agent" / "cpp-algo" / "MaaUtils" / "MaaDeps" / "vcpkg" / "installed"
173 )
174 if skip_if_exist and maadeps_dir.exists() and any(maadeps_dir.iterdir()):
175 print(Console.ok(t("inf_maadeps_exist")))
176 return True
177
178 print(Console.info(t("inf_bootstrap_maadeps")))
179 script_path = PROJECT_BASE / "tools" / "maadeps-download.py"
180 return run_command([sys.executable, str(script_path)])
181
182
183_dep_3rdparty_inited = False

Callers 1

mainFunction · 0.85

Calls 4

run_commandFunction · 0.85
okMethod · 0.80
infoMethod · 0.80
tFunction · 0.70

Tested by

no test coverage detected