From 0ba1a42867d88ce129a1104e26d0a64dc352d98a Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sun, 12 Mar 2023 20:05:23 -0500 Subject: [PATCH] CI:macOS: Use xz for distribution macOS 10.14 fixed a bug where Archive Utility couldn't decompress .tar.xz and is now our minimum version --- .github/workflows/macos_build.yml | 6 +++--- .github/workflows/scripts/releases/rename-release-assets.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos_build.yml b/.github/workflows/macos_build.yml index 9334340d5e..33d9cb93dc 100644 --- a/.github/workflows/macos_build.yml +++ b/.github/workflows/macos_build.yml @@ -144,12 +144,12 @@ jobs: APPNAME="PCSX2-$TAG" fi mv build/pcsx2*/PCSX2.app "$APPNAME.app" - tar cvzf "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.gz" "$APPNAME.app" + tar --options xz:compression-level=9 -cvJf "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.xz" "$APPNAME.app" mkdir ci-artifacts - cp "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.gz" ci-artifacts/macOS-${{ inputs.gui }}.tar.gz + cp "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.xz" ci-artifacts/macOS-${{ inputs.gui }}.tar.xz - name: Upload Artifact uses: actions/upload-artifact@v3 with: name: ${{ steps.artifact-metadata.outputs.artifact-name }} - path: "*.tar.gz" + path: "*.tar.xz" diff --git a/.github/workflows/scripts/releases/rename-release-assets.py b/.github/workflows/scripts/releases/rename-release-assets.py index 52d4078d9c..b22c159739 100644 --- a/.github/workflows/scripts/releases/rename-release-assets.py +++ b/.github/workflows/scripts/releases/rename-release-assets.py @@ -4,7 +4,7 @@ import shutil tag = os.environ['TAG'].split("refs/tags/")[1] scan_dir = os.environ['SCAN_DIR'] output_dir = os.environ['OUT_DIR'] -accepted_exts = ["AppImage", "tar.gz", "7z"] +accepted_exts = ["AppImage", "tar.xz", "7z"] for dir_name in os.listdir(scan_dir):