Skip to content

Commit

Permalink
Update run.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba authored Dec 17, 2023
1 parent e49b4ad commit 9acdfa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions run.spec
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,19 @@ coll = COLLECT(
)

# 実行ファイル作成後の処理

# 実行ファイルと同じrootディレクトリ
target_dir = Path(DISTPATH) / "run"

# 動的ライブラリをコピー
if libonnxruntime_path is not None:
copy2(libonnxruntime_path, target_dir)

if libcore_path is not None:
copy2(libcore_path, target_dir)

if core_model_dir_path is not None:
copytree(core_model_dir_path, target_dir / "model")

# 互換性維持のために必要なファイルをコピー
license_file_path = Path("licenses.json")
if license_file_path.is_file():
copy2("licenses.json", target_dir)
Expand Down

0 comments on commit 9acdfa3

Please sign in to comment.