Skip to content

Commit

Permalink
Change archive format from .zip to .tar.gz and change artifact na…
Browse files Browse the repository at this point in the history
…me (#8)
  • Loading branch information
misl6 authored Feb 9, 2024
1 parent 0a97226 commit 6a34b0e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/angle_builder/angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
)
Expand All @@ -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,
)

0 comments on commit 6a34b0e

Please sign in to comment.