File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424
2525
2626def get_dotnet_platform_tag ():
27- """根据 os 和 arch 返回 dotnet 平台标签"""
2827 if os_name == "win" and arch == "x86_64" :
2928 return "win-x64"
3029 elif os_name == "win" and arch == "aarch64" :
Original file line number Diff line number Diff line change 1010
1111from configure import configure_ocr_model
1212
13- working_dir = Path (__file__ ).parent .parent .parent
13+ # 修正:指向仓库根目录(即 tools 的父目录)
14+ working_dir = Path (__file__ ).parent .parent .resolve ()
1415install_path = working_dir / "install-cli"
1516
1617if len (sys .argv ) < 4 :
Original file line number Diff line number Diff line change 1010
1111from configure import configure_ocr_model
1212
13- working_dir = Path (__file__ ).parent .parent .parent
13+ # 修正:指向仓库根目录
14+ working_dir = Path (__file__ ).parent .parent .resolve ()
1415install_path = working_dir / "install-mxu"
1516
1617if len (sys .argv ) < 4 :
You can’t perform that action at this time.
0 commit comments