Sfoglia il codice sorgente

CI: Replace buildspec in Appcast update action

Updates the sparkle-appcast action to use Sparkle version information
from the CMake preset file instead of the obsoleted buildspec file.
PatTheMav 1 mese fa
parent
commit
5e1cd6057a
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      .github/actions/sparkle-appcast/action.yaml

+ 7 - 1
.github/actions/sparkle-appcast/action.yaml

@@ -55,7 +55,13 @@ runs:
         local base_url
         local hash
         IFS=';' read -r version base_url hash <<< \
-          "$(jq -r '.tools.sparkle | {version, baseUrl, hash} | join(";")' buildspec.json)"
+          "$(jq -r '
+            .configurePresets[]
+            | select(.name=="dependencies")
+            | .vendor["obsproject.com/obs-studio"].tools.sparkle
+            | {version, baseUrl, hash}
+            | join(";")
+          ' CMakePresets.json)"
 
         mkdir -p Sparkle && pushd Sparkle
         curl -s -L -O "${base_url}/${version}/Sparkle-${version}.tar.xz"