mirror of
https://github.com/godotengine/godot.git
synced 2025-01-06 17:37:18 +08:00
28a702d580
This script can be used to make Godot easier to compile on a fresh macOS installation, including on CI platforms and containers where the Vulkan SDK isn't preinstalled.
14 lines
482 B
Bash
Executable File
14 lines
482 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
# Download and install the Vulkan SDK.
|
|
curl -LO "https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.dmg"
|
|
hdiutil attach vulkan-sdk.dmg -mountpoint /Volumes/vulkan-sdk
|
|
/Volumes/vulkan-sdk/InstallVulkan.app/Contents/MacOS/InstallVulkan \
|
|
--accept-licenses --default-answer --confirm-command install
|
|
hdiutil detach /Volumes/vulkan-sdk
|
|
|
|
echo 'Vulkan SDK installed successfully! You can now build Godot by running "scons".'
|