You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
macOS: Fix support for latest VulkanSDK .app name in install script
This commit is contained in:
@@ -24,19 +24,19 @@ if command -v jq 2>&1 >/dev/null; then
|
|||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo 'Error: Could not find 'jq' command. Is jq installed? Try running "brew install jq" or "port install jq" and rerunning this script.'
|
echo 'Error: Could not find 'jq' command. Is jq installed? Try running "brew install jq" or "port install jq" and rerunning this script.'
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Download and install the Vulkan SDK.
|
# Download and install the Vulkan SDK.
|
||||||
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/latest/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/InstallVulkan-$new_ver_full.app" ]; then
|
if [ -d "/tmp/vulkansdk-macOS-$new_ver_full.app" ]; then
|
||||||
/tmp/InstallVulkan-$new_ver_full.app/Contents/MacOS/InstallVulkan-$new_ver_full --accept-licenses --default-answer --confirm-command install
|
/tmp/vulkansdk-macOS-$new_ver_full.app/Contents/MacOS/vulkansdk-macOS-$new_ver_full --accept-licenses --default-answer --confirm-command install
|
||||||
rm -rf /tmp/InstallVulkan-$new_ver_full.app
|
rm -rf /tmp/vulkansdk-macOS-$new_ver_full.app
|
||||||
elif [ -d "/tmp/InstallVulkan.app" ]; then
|
else
|
||||||
/tmp/InstallVulkan.app/Contents/MacOS/InstallVulkan --accept-licenses --default-answer --confirm-command install
|
echo "Couldn't install the Vulkan SDK, the unzipped contents may no longer match what this script expects."
|
||||||
rm -rf /tmp/InstallVulkan.app
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f /tmp/vulkan-sdk.zip
|
rm -f /tmp/vulkan-sdk.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user