From 6a34b0e19ca0c66e041adbcb9232ef9a8cf92bfa Mon Sep 17 00:00:00 2001 From: Mirko Galimberti Date: Fri, 9 Feb 2024 18:10:01 +0100 Subject: [PATCH] Change archive format from `.zip` to `.tar.gz` and change artifact name (#8) --- src/angle_builder/angle.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/angle_builder/angle.py b/src/angle_builder/angle.py index ad4fd63..e6bc5ff 100644 --- a/src/angle_builder/angle.py +++ b/src/angle_builder/angle.py @@ -561,7 +561,7 @@ def build(self, output_artifact_mode: str, output_folder: str) -> None: - iphonesimulator-arm64 - iphoneall-universal - The produced artifact is a zip file containing: + The produced artifact is a .tar.gz archive containing: - libEGL - libGLESv2 - include folder @@ -589,7 +589,7 @@ def build(self, output_artifact_mode: str, output_folder: str) -> None: with tempfile.TemporaryDirectory() as temp_dir: self._logger.info( - "Creating zip for branch %s and output_artifact_mode %s", + "Creating archive for branch %s and output_artifact_mode %s", self.branch, output_artifact_mode, ) @@ -607,13 +607,10 @@ def build(self, output_artifact_mode: str, output_folder: str) -> None: ) shutil.copy(license_path, temp_dir) - # Create a zip file with libs, include folder and LICENSE + # Create a .tar.gz archive with libs, include folder and LICENSE shutil.make_archive( - os.path.join( - output_folder, - f"angle-{self.underlined_branch}-{output_artifact_mode}", - ), - "zip", + os.path.join(output_folder, f"angle-{output_artifact_mode}"), + "gztar", root_dir=temp_dir, verbose=True, )