From 047903e54c99edf553c74a978594375e7d71e734 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 15 Jan 2025 10:08:22 +0100 Subject: [PATCH] Add Sparkle --- .github/workflows/build.yml | 21 +++++++++++++++++++++ scripts/update.sh | 3 +++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e05574..3eabc9f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -140,6 +140,8 @@ env: kdsingleapplication_version: '1.1.0' + sparkle_version: '2.6.4' + max_releases: '6' curl_options: '-f -O -L --connect-timeout 15 -m 900 --retry 15 --retry-delay 10 --retry-max-time 300 --retry-all-errors' @@ -3281,6 +3283,25 @@ jobs: run: make install + - name: Download sparkle + shell: bash + working-directory: downloads + run: curl ${{env.curl_options}} https://github.com/sparkle-project/Sparkle/releases/download/${{env.sparkle_version}}/Sparkle-${{env.sparkle_version}}.tar.xz + + - name: Extract sparkle + shell: bash + working-directory: build + run: | + mkdir sparkle + cd sparkle + tar -xf ../../downloads/Sparkle-${{env.sparkle_version}}.tar.xz + + - name: Install sparkle + shell: bash + working-directory: build/sparkle + run: cp -R Sparkle.framework ${{env.prefix_path}}/lib/ + + - name: Cleanup build directory if: env.runner == 'macos-11' || env.runner == 'macos-12' || env.runner == 'macos-13' || env.runner == 'macos-14' shell: bash diff --git a/scripts/update.sh b/scripts/update.sh index 7440462..eaae565 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -341,6 +341,9 @@ function update_package() { "protobuf") package_version_latest=$(latest_github_release "protocolbuffers" "protobuf") ;; + "sparkle") + package_version_latest=$(latest_github_release "sparkle-project" "Sparkle") + ;; *) package_version_latest= error "No update rule for package: ${package}"