From 0cf9bd941288a0f73a54163f44921e708c8fceb5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Raynaud Date: Tue, 3 Dec 2024 11:43:40 +0100 Subject: [PATCH] feat: add execute rights on pre-built binaries in CI --- .github/workflows/scripts/package-distribution.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scripts/package-distribution.py b/.github/workflows/scripts/package-distribution.py index cfce32afb63..ad1eb1d7342 100644 --- a/.github/workflows/scripts/package-distribution.py +++ b/.github/workflows/scripts/package-distribution.py @@ -30,8 +30,9 @@ def build_archive(input_dir, destination_dir, archive_basename): destination_dir, f"{archive_basename}.tar.gz") with tarfile.open(archive_name, "x:gz") as archive: for filename in input_files: - archive.add(os.path.join(input_dir, filename), - arcname=filename) + filepath = os.path.join(input_dir, filename) + os.chmod(filepath, 0o755) + archive.add(filepath, arcname=filename) print(f"successfully packed mithril distribution into: {archive_name}") return archive_name