install_vulkan_sdk_macos.sh 482 B

1234567891011121314151617
  1. #!/usr/bin/env sh
  2. set -euo pipefail
  3. IFS=$'\n\t'
  4. # Download and install the Vulkan SDK.
  5. curl -L "https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.zip" -o /tmp/vulkan-sdk.zip
  6. unzip /tmp/vulkan-sdk.zip -d /tmp
  7. /tmp/InstallVulkan.app/Contents/MacOS/InstallVulkan \
  8. --accept-licenses --default-answer --confirm-command install
  9. rm -rf /tmp/InstallVulkan.app
  10. rm -f /tmp/vulkan-sdk.zip
  11. echo 'Vulkan SDK installed successfully! You can now build Godot by running "scons".'