📝 adjust package script

This commit is contained in:
ValKmjolnir 2025-01-11 21:20:44 +08:00
parent c6840da201
commit 89826da791
1 changed files with 5 additions and 0 deletions

View File

@ -10,10 +10,14 @@ if not os.path.exists(build_directory):
exit(-1) exit(-1)
nasal_executable = pathlib.Path("nasal") nasal_executable = pathlib.Path("nasal")
nasal_format_executable = pathlib.Path("nasal-format")
nasal_standard_library = pathlib.Path("std") nasal_standard_library = pathlib.Path("std")
if not os.path.exists(nasal_executable): if not os.path.exists(nasal_executable):
print("pack binaries failed: nasal executable not found") print("pack binaries failed: nasal executable not found")
exit(-1) exit(-1)
if not os.path.exists(nasal_format_executable):
print("pack binaries failed: nasal-format executable not found")
exit(-1)
if not os.path.exists(nasal_standard_library): if not os.path.exists(nasal_standard_library):
print("pack binaries failed: nasal standard library not found") print("pack binaries failed: nasal standard library not found")
exit(-1) exit(-1)
@ -61,6 +65,7 @@ if not os.path.exists(package_directory):
print("pack nasal executable") print("pack nasal executable")
shutil.copy(nasal_executable, package_directory.joinpath(nasal_executable)) shutil.copy(nasal_executable, package_directory.joinpath(nasal_executable))
shutil.copy(nasal_format_executable, package_directory.joinpath(nasal_format_executable))
print("pack nasal standard library") print("pack nasal standard library")
shutil.copytree(nasal_standard_library, package_directory.joinpath(nasal_standard_library)) shutil.copytree(nasal_standard_library, package_directory.joinpath(nasal_standard_library))