[macOS] Add Symlink for tcl-tk8 (#11128)

* [macOS] Add Symlink for tcl-tk8

* [macOS] Add condition for tcl tk only for macOS13 and macOS14 Intel machines

* [macOS] Update test case for tcl/tk

* [macOS] Update test cases for tcl/tk for macOS15

* [macOS] Update tcl/tk test cases
This commit is contained in:
sarathrajsrinivasan
2024-12-16 02:22:29 -08:00
committed by GitHub
parent 0e631a89e8
commit 5c8a14c94c
2 changed files with 11 additions and 4 deletions

View File

@@ -21,7 +21,14 @@ for package in $common_packages; do
# Packer has been deprecated in Homebrew. Use tap to install Packer.
brew install hashicorp/tap/packer
else
brew_smart_install "$package"
if (is_VenturaX64 || is_SonomaX64) && [[ $package == "tcl-tk@8" ]]; then
brew_smart_install "$package"
# Fix for https://github.com/actions/runner-images/issues/11074
ln -sf $(brew --prefix tcl-tk@8)/lib/libtcl8.6.dylib /usr/local/lib/libtcl8.6.dylib
ln -sf $(brew --prefix tcl-tk@8)/lib/libtk8.6.dylib /usr/local/lib/libtk8.6.dylib
else
brew_smart_install "$package"
fi
fi
fi
done