Skip to content

Commit

Permalink
fix(ci): make install vulkan script to not depend on version
Browse files Browse the repository at this point in the history
  • Loading branch information
piiertho committed Feb 14, 2025
1 parent ce8f70f commit a908417
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions install_vulkan_sdk_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ IFS=$'\n\t'

# Download and install the Vulkan SDK.
curl -L "https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.zip" -o /tmp/vulkan-sdk.zip
unzip -l /tmp/vulkan-sdk.zip | grep 'InstallVulkan.*\.app' | head -n 1 | awk '{print $4}' | tr -d '/' > /tmp/install_app_name

unzip /tmp/vulkan-sdk.zip -d /tmp
/tmp/InstallVulkan.app/Contents/MacOS/InstallVulkan \
install_app_name=$(cat /tmp/install_app_name)
/tmp/$install_app_name/Contents/MacOS/${install_app_name}%.app \
--accept-licenses --default-answer --confirm-command install


rm -rf /tmp/InstallVulkan.app
rm -rf /tmp/$install_app_name
rm -f /tmp/vulkan-sdk.zip
rm -f /tmp/install_app_name

echo 'Vulkan SDK installed successfully! You can now build Godot by running "scons".'
echo 'Vulkan SDK installed successfully! You can now build Godot by running "scons".'

0 comments on commit a908417

Please sign in to comment.