Pin Vulkan SDK version to 1.4.313.1 for compatibility with Mac 10.3.

This commit is contained in:
kitsune4295
2025-07-26 19:20:37 -05:00
parent eb7afbdf36
commit 93e22b45e8

View File

@@ -4,9 +4,9 @@ set -euo pipefail
IFS=$'\n\t' IFS=$'\n\t'
new_ver_full='' new_ver_full=''
# Check currently installed and latest available Vulkan SDK versions. # Versions past 1.4.313.1 require Mac 10.5, we need to support 10.3 in Redot 4.4 and older.
if command -v jq 2>&1 >/dev/null; then if command -v jq 2>&1 >/dev/null; then
curl -L "https://sdk.lunarg.com/sdk/download/latest/mac/config.json" -o /tmp/vulkan-sdk.json curl -L "https://sdk.lunarg.com/sdk/download/1.4.313.1/mac/config.json" -o /tmp/vulkan-sdk.json
new_ver_full=`jq -r '.version' /tmp/vulkan-sdk.json` new_ver_full=`jq -r '.version' /tmp/vulkan-sdk.json`
new_ver=`echo "$new_ver_full" | awk -F. '{ printf("%d%02d%04d%02d\n", $1,$2,$3,$4); }';` new_ver=`echo "$new_ver_full" | awk -F. '{ printf("%d%02d%04d%02d\n", $1,$2,$3,$4); }';`
@@ -27,8 +27,8 @@ else
exit 1 exit 1
fi fi
# Download and install the Vulkan SDK. # Versions past 1.4.313.1 require Mac 10.5, we need to support 10.3 in Redot 4.4 and older.
curl -L "https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.zip" -o /tmp/vulkan-sdk.zip curl -L "https://sdk.lunarg.com/sdk/download/1.4.313.1/mac/vulkan-sdk.zip" -o /tmp/vulkan-sdk.zip
unzip /tmp/vulkan-sdk.zip -d /tmp unzip /tmp/vulkan-sdk.zip -d /tmp
if [ -d "/tmp/vulkansdk-macOS-$new_ver_full.app" ]; then if [ -d "/tmp/vulkansdk-macOS-$new_ver_full.app" ]; then