Skip to content

Commit f76ff03

Browse files
committed
ci: fix tar.gz paths when packaging
1 parent a488684 commit f76ff03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/scripts/release.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,10 @@ def package(arch: str, directory: str):
263263
execute(args)
264264

265265
def package_tar(arch: str, directory: str):
266+
parent = os.path.dirname(directory)
267+
directory_name = os.path.basename(directory)
266268
print(Colors.cyan("packaging"), os.path.basename(arch), "...")
267-
args = ["tar", "czf", arch, directory]
269+
args = ["tar", "czf", arch, "-C", parent, directory_name]
268270
execute(args)
269271

270272
def copy_binaries(section: Section, target_location):

0 commit comments

Comments
 (0)