File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -53,21 +53,25 @@ function install_windows() {
5353function install_mac() {
5454 test -d $VULKAN_SDK && test -f vulkan_sdk.zip
5555 unzip vulkan_sdk.zip
56+ local InstallVulkan
5657 if [[ -d InstallVulkan-${VULKAN_SDK_VERSION} .app/Contents ]] ; then
57- echo " recognized zip layout! 'vulkan_sdk.zip' InstallVulkan-${VULKAN_SDK_VERSION} .app/Contents" >&2
58+ InstallVulkan=InstallVulkan-${VULKAN_SDK_VERSION}
59+ elif [[ -d InstallVulkan.app/Contents ]] ; then
60+ InstallVulkan=InstallVulkan
5861 else
5962 echo " unrecognized zip/layout: vulkan_sdk.zip" >&2
6063 file vulkan_sdk.zip
6164 unzip -t vulkan_sdk.zip
6265 exit 7
6366 fi
67+ echo " recognized zip layout 'vulkan_sdk.zip' ${InstallVulkan} .app/Contents" >&2
6468 local sdk_temp=${VULKAN_SDK} .tmp
65- sudo InstallVulkan- ${VULKAN_SDK_VERSION } .app/Contents/MacOS/InstallVulkan- ${VULKAN_SDK_VERSION } --root " $sdk_temp " --accept-licenses --default-answer --confirm-command install
69+ sudo ${InstallVulkan } .app/Contents/MacOS/${InstallVulkan } --root " $sdk_temp " --accept-licenses --default-answer --confirm-command install
6670 du -hs $sdk_temp
6771 test -d $sdk_temp /macOS || { echo " unrecognized dmg folder layout: $sdk_temp " ; ls -l $sdk_temp ; exit 10 ; }
6872 cp -r $sdk_temp /macOS/* $VULKAN_SDK /
69- if [[ -d InstallVulkan.app/Contents ]] ; then
73+ if [[ -d ${ InstallVulkan} .app/Contents ]] ; then
7074 sudo rm -rf " $sdk_temp "
71- rm -rf InstallVulkan- ${VULKAN_SDK_VERSION } .app
75+ rm -rf ${InstallVulkan } .app
7276 fi
7377}
You can’t perform that action at this time.
0 commit comments