mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
Anka close Python 2.7 window (#5135)
This commit is contained in:
committed by
GitHub
parent
b2999beaf8
commit
32b225ca7f
@@ -13,7 +13,7 @@ sudo rm -f /var/vm/sleepimage
|
||||
defaults write NSGlobalDomain NSAppSleepDisabled -bool YES
|
||||
|
||||
# Disable Keyboard Setup Assistant window
|
||||
if [ -d "/Library/Application Support/Veertu" ]; then
|
||||
if is_Veertu; then
|
||||
sudo defaults write /Library/Preferences/com.apple.keyboardtype "keyboardtype" -dict-add "3-7582-0" -int 40
|
||||
fi
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
source ~/utils/utils.sh
|
||||
|
||||
# Close all finder windows because they can interfere with UI tests
|
||||
osascript -e 'tell application "Finder" to close windows'
|
||||
close_finder_window
|
||||
|
||||
if is_Catalina; then
|
||||
# Ignore available updates to prevent system pop-ups
|
||||
|
||||
@@ -12,6 +12,11 @@ pip install --upgrade pip
|
||||
echo "Install Python2 certificates"
|
||||
bash -c "/Applications/Python\ 2.7/Install\ Certificates.command"
|
||||
|
||||
# Close Finder window
|
||||
if is_Veertu; then
|
||||
close_finder_window
|
||||
fi
|
||||
|
||||
# Explicitly overwrite symlinks created by Python2 such as /usr/local/bin/2to3 since they conflict with symlinks from Python3
|
||||
# https://github.com/actions/virtual-environments/issues/2322
|
||||
echo "Brew Installing Python 3"
|
||||
|
||||
@@ -71,6 +71,14 @@ is_Less_Monterey() {
|
||||
fi
|
||||
}
|
||||
|
||||
is_Veertu() {
|
||||
if [ -d "/Library/Application Support/Veertu" ]; then
|
||||
true
|
||||
else
|
||||
false
|
||||
fi
|
||||
}
|
||||
|
||||
get_toolset_path() {
|
||||
echo "$HOME/image-generation/toolset.json"
|
||||
}
|
||||
@@ -193,3 +201,8 @@ get_github_package_download_url() {
|
||||
|
||||
echo $downloadUrl
|
||||
}
|
||||
|
||||
# Close all finder windows because they can interfere with UI tests
|
||||
close_finder_window() {
|
||||
osascript -e 'tell application "Finder" to close windows'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user