Skip to content

Commit 6a6a116

Browse files
authored
Merge pull request #106128 from akien-mga/macos-vulkansdk-install-add-new-format
macOS: Fix support for latest VulkanSDK .app name in install script
2 parents a895a86 + efde4ae commit 6a6a116

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

misc/scripts/install_vulkan_sdk_macos.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ if command -v jq 2>&1 >/dev/null; then
2424
done
2525
else
2626
echo 'Error: Could not find 'jq' command. Is jq installed? Try running "brew install jq" or "port install jq" and rerunning this script.'
27-
exit 0
27+
exit 1
2828
fi
2929

3030
# Download and install the Vulkan SDK.
3131
curl -L "https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.zip" -o /tmp/vulkan-sdk.zip
3232
unzip /tmp/vulkan-sdk.zip -d /tmp
3333

34-
if [ -d "/tmp/InstallVulkan-$new_ver_full.app" ]; then
35-
/tmp/InstallVulkan-$new_ver_full.app/Contents/MacOS/InstallVulkan-$new_ver_full --accept-licenses --default-answer --confirm-command install
36-
rm -rf /tmp/InstallVulkan-$new_ver_full.app
37-
elif [ -d "/tmp/InstallVulkan.app" ]; then
38-
/tmp/InstallVulkan.app/Contents/MacOS/InstallVulkan --accept-licenses --default-answer --confirm-command install
39-
rm -rf /tmp/InstallVulkan.app
34+
if [ -d "/tmp/vulkansdk-macOS-$new_ver_full.app" ]; then
35+
/tmp/vulkansdk-macOS-$new_ver_full.app/Contents/MacOS/vulkansdk-macOS-$new_ver_full --accept-licenses --default-answer --confirm-command install
36+
rm -rf /tmp/vulkansdk-macOS-$new_ver_full.app
37+
else
38+
echo "Couldn't install the Vulkan SDK, the unzipped contents may no longer match what this script expects."
39+
exit 1
4040
fi
4141

4242
rm -f /tmp/vulkan-sdk.zip

0 commit comments

Comments
 (0)