Add macOS 12 image templates (#4062)

This commit is contained in:
Dmitry Shibanov
2021-09-24 13:56:16 +03:00
committed by GitHub
parent ee4eda5e99
commit bf1cae6dcf
20 changed files with 530 additions and 46 deletions
+4
View File
@@ -4,6 +4,10 @@ source ~/utils/utils.sh
DEFAULT_RUBY_VERSION=$(get_toolset_value '.ruby.default')
echo Installing Ruby...
brew_smart_install "ruby@${DEFAULT_RUBY_VERSION}"
export PATH=/usr/local/opt/ruby@${DEFAULT_RUBY_VERSION}/bin:$PATH
GEM_PATH=`gem env|awk '/EXECUTABLE DIRECTORY/ {print $4}'`
echo "GEM_PATH=$GEM_PATH" >> "$HOME/.bashrc"
echo 'export PATH="$GEM_PATH:/usr/local/opt/ruby@'${DEFAULT_RUBY_VERSION}'/bin:$PATH"' >> "$HOME/.bashrc"
#if High Sierra - skip installation from toolset
if is_HighSierra; then