Skip to content

Commit 72ad583

Browse files
committed
perf: 打包优化
1 parent 4be0fdb commit 72ad583

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

tools/install.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ def install_deps():
6666
install_path,
6767
dirs_exist_ok=True,
6868
)
69+
shutil.copytree(
70+
working_dir / "deps" / "share" / "MaaAgentBinary",
71+
install_path / "MaaAgentBinary",
72+
dirs_exist_ok=True,
73+
)
6974
else:
7075
shutil.copytree(
7176
working_dir / "deps" / "bin",
@@ -75,15 +80,23 @@ def install_deps():
7580
"*MaaThriftControlUnit*",
7681
"*MaaRpc*",
7782
"*MaaHttp*",
83+
"plugins",
84+
"*.node",
85+
"*MaaPiCli*",
7886
),
7987
dirs_exist_ok=True,
8088
)
89+
shutil.copytree(
90+
working_dir / "deps" / "share" / "MaaAgentBinary",
91+
install_path / "libs" / "MaaAgentBinary",
92+
dirs_exist_ok=True,
93+
)
94+
shutil.copytree(
95+
working_dir / "deps" / "bin" / "plugins",
96+
install_path / "plugins" / get_dotnet_platform_tag(),
97+
dirs_exist_ok=True,
98+
)
8199

82-
shutil.copytree(
83-
working_dir / "deps" / "share" / "MaaAgentBinary",
84-
install_path / "MaaAgentBinary",
85-
dirs_exist_ok=True,
86-
)
87100

88101

89102
def install_resource():

0 commit comments

Comments
 (0)