Skip to content

Commit

Permalink
📝 adjust package script
Browse files Browse the repository at this point in the history
  • Loading branch information
ValKmjolnir committed Jan 11, 2025
1 parent c6840da commit 89826da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
exit(-1)

nasal_executable = pathlib.Path("nasal")
nasal_format_executable = pathlib.Path("nasal-format")
nasal_standard_library = pathlib.Path("std")
if not os.path.exists(nasal_executable):
print("pack binaries failed: nasal executable not found")
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):
print("pack binaries failed: nasal standard library not found")
exit(-1)
Expand Down Expand Up @@ -61,6 +65,7 @@

print("pack 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")
shutil.copytree(nasal_standard_library, package_directory.joinpath(nasal_standard_library))
Expand Down

0 comments on commit 89826da

Please sign in to comment.