MCPcopy Create free account
hub / github.com/Prograda/Skybolt / package

Function package

Tools/BuildScripts/build.py:30–47  ·  view source on GitHub ↗

Copy the build artifacts, dependency binaries, and required runtime resources to a stand-alone package folder.

(skybolt_source_dir: Path, skybolt_build_dir: Path, package_dir: Path)

Source from the content-addressed store, hash-verified

28
29
30def package(skybolt_source_dir: Path, skybolt_build_dir: Path, package_dir: Path):
31 """
32 Copy the build artifacts, dependency binaries, and required runtime resources to a stand-alone package folder.
33 """
34 logging.info(f"Packaging build...")
35
36 sp.run(f"cmake --install {skybolt_build_dir} --prefix {skybolt_build_dir}/install", shell=True, check=True)
37
38 copy_tree(skybolt_build_dir / "install/bin", package_dir / "bin")
39
40 if os.sys.platform.startswith('linux'):
41 # Shared libraries on linux go in lib folder
42 copy_tree(skybolt_build_dir / "install/lib", package_dir / "lib")
43
44 copy_tree(skybolt_source_dir / "Assets", package_dir / "Assets")
45 copy_tree(skybolt_source_dir / "Scenarios", package_dir / "Scenarios")
46 copy_file(skybolt_source_dir / "License.txt", package_dir)
47 copy_file(skybolt_source_dir / "README.md", package_dir)
48
49
50def package_docs(skybolt_source_dir: Path, package_dir: Path):

Callers 1

build.pyFile · 0.85

Calls 3

copy_treeFunction · 0.85
copy_fileFunction · 0.85
runMethod · 0.80

Tested by

no test coverage detected