mirror-chatterino2/scripts/get-vcpkg-package-versions.sh
kornes 49bdeb3b49
chore: update vcpkg baseline (Qt 6.7.0) (#5422)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2024-05-25 17:17:37 +00:00

11 lines
539 B
Bash
Executable file

#!/usr/bin/env bash
dependencies="$(jq -r -c '.dependencies[] | if type == "string" then . else .name end' vcpkg.json)"
dependencies+=" openssl"
baseline="$(jq -r -c '."builtin-baseline"' vcpkg.json)"
for dependency_name in $dependencies; do
dependency_url="https://raw.githubusercontent.com/microsoft/vcpkg/${baseline}/ports/${dependency_name}/vcpkg.json"
dependency_version="$(curl -s "$dependency_url" | jq -rc '.version')"
echo "Dependency $dependency_name is at version '$dependency_version' in baseline $baseline"
done