From 964fbe1fe712596c6559127212ea934dc64eb143 Mon Sep 17 00:00:00 2001 From: Majd Alfhaily Date: Sun, 29 May 2022 14:23:26 +0200 Subject: [PATCH] Add backward-compatibility for macOS 10.11+ (#78) * Add backward-compatibility for macOS 10.11+ * Update restore-keys for GitHub cache * Update path for GitHub cache --- .github/workflows/distribute.yml | 6 ++++-- .github/workflows/integration-tests.yml | 3 ++- .github/workflows/unit-tests.yml | 3 ++- Package.swift | 2 +- README.md | 6 +++--- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/distribute.yml b/.github/workflows/distribute.yml index fb2cb291..a200a139 100644 --- a/.github/workflows/distribute.yml +++ b/.github/workflows/distribute.yml @@ -24,9 +24,10 @@ jobs: - name: Cache SwiftPM packages uses: actions/cache@v3 with: - path: ~/Library/Developer/Xcode/DerivedData/ipatool*/SourcePackages/ + path: .build/checkouts key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} restore-keys: | + ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} ${{ runner.os }}-spm- - name: Inject version run: ./Scripts/version @@ -44,9 +45,10 @@ jobs: - name: Cache SwiftPM packages uses: actions/cache@v3 with: - path: ~/Library/Developer/Xcode/DerivedData/ipatool*/SourcePackages/ + path: .build/checkouts key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} restore-keys: | + ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} ${{ runner.os }}-spm- - name: Inject version run: ./Scripts/version diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index e5d15b3e..0c03f02b 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -15,9 +15,10 @@ jobs: - name: Cache SwiftPM packages uses: actions/cache@v3 with: - path: ~/Library/Developer/Xcode/DerivedData/ipatool*/SourcePackages/ + path: .build/checkouts key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} restore-keys: | + ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} ${{ runner.os }}-spm- - name: Inject version run: ./Scripts/version diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 1ce9dba6..1059e597 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -15,9 +15,10 @@ jobs: - name: Cache SwiftPM packages uses: actions/cache@v3 with: - path: ~/Library/Developer/Xcode/DerivedData/ipatool*/SourcePackages/ + path: .build/checkouts key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} restore-keys: | + ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} ${{ runner.os }}-spm- - name: Inject version run: ./Scripts/version diff --git a/Package.swift b/Package.swift index 927820a6..8633e6c4 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription let package = Package( name: "IPATool", - platforms: [.macOS(.v10_15)], + platforms: [.macOS(.v10_11)], products: [ .executable(name: "ipatool", targets: ["CLI"]), .library(name: "StoreAPI", targets: ["StoreAPI"]), diff --git a/README.md b/README.md index fed6e22f..1af2ca90 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ [![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/majd/ipatool/blob/main/LICENSE) [![Unit Tests](https://github.com/majd/ipatool/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/majd/ipatool/actions/workflows/unit-tests.yml) [![Integration Tests](https://github.com/majd/ipatool/actions/workflows/integration-tests.yml/badge.svg)](https://github.com/majd/ipatool/actions/workflows/integration-tests.yml) -![Swift](https://img.shields.io/badge/Swift-5.5-green.svg) -![macOS](https://img.shields.io/badge/macOS-10.15%2B-green.svg) +![Swift](https://img.shields.io/badge/Swift-5.6-green.svg) +![macOS](https://img.shields.io/badge/macOS-10.11%2B-green.svg) `ipatool` is a command line tool that allows you to search for iOS apps on the [App Store](https://apps.apple.com) and download a copy of the app package, known as an _ipa_ file. @@ -21,7 +21,7 @@ ## Requirements -- macOS 10.15 or later. +- macOS 10.11 or later. - Apple ID set up to use the App Store. ## Installation