From 76af42ae6e1a67ef8e00ca96cf2d226407d2618a Mon Sep 17 00:00:00 2001 From: Edward Li Date: Tue, 23 May 2023 03:08:05 +0800 Subject: [PATCH] Latest Vulkan SDK has a new volume name `VulkanSDK` --- shell/apple/generate_xcode_project.command | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shell/apple/generate_xcode_project.command b/shell/apple/generate_xcode_project.command index 77861caa5..3843519ce 100755 --- a/shell/apple/generate_xcode_project.command +++ b/shell/apple/generate_xcode_project.command @@ -22,11 +22,12 @@ if [[ -z "${VULKAN_SDK}" ]]; then if [ $v == "y" ]; then curl https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.dmg -o vulkan-sdk.dmg hdiutil attach ./vulkan-sdk.dmg - /Volumes/vulkansdk-macos-*/InstallVulkan.app/Contents/MacOS/InstallVulkan --root $HOME/VulkanSDK --accept-licenses --default-answer --confirm-command install - hdiutil detach /Volumes/vulkansdk-macos-* + /Volumes/VulkanSDK/InstallVulkan.app/Contents/MacOS/InstallVulkan --root $HOME/VulkanSDK --accept-licenses --default-answer --confirm-command install + hdiutil detach /Volumes/VulkanSDK rm ./vulkan-sdk.dmg echo "export VULKAN_SDK=$HOME/VulkanSDK/macOS" >> ~/.zshrc - echo "VULKAN_SDK is now set in .zshrc (Will be effective after you restart the shell)" + echo "VULKAN_SDK is now set in .zshrc" + source ~/.zshrc fi fi