From f76ff0390fcc5a7607a78d1eeee06a376d9934ba Mon Sep 17 00:00:00 2001 From: JaDogg Date: Sun, 14 Apr 2024 10:59:17 +0100 Subject: [PATCH] ci: fix tar.gz paths when packaging --- compiler/scripts/release.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/scripts/release.py b/compiler/scripts/release.py index 929ed017..b31e63e5 100755 --- a/compiler/scripts/release.py +++ b/compiler/scripts/release.py @@ -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):