Skip to content

Commit

Permalink
ci: fix tar.gz paths when packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Apr 14, 2024
1 parent a488684 commit f76ff03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,10 @@ def package(arch: str, directory: str):
execute(args)

def package_tar(arch: str, directory: str):
parent = os.path.dirname(directory)
directory_name = os.path.basename(directory)
print(Colors.cyan("packaging"), os.path.basename(arch), "...")
args = ["tar", "czf", arch, directory]
args = ["tar", "czf", arch, "-C", parent, directory_name]
execute(args)

def copy_binaries(section: Section, target_location):
Expand Down

0 comments on commit f76ff03

Please sign in to comment.