Anka close Python 2.7 window (#5135)

This commit is contained in:
Aleksandr Chebotov
2022-02-25 10:55:47 +03:00
committed by GitHub
parent b2999beaf8
commit 32b225ca7f
4 changed files with 21 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ sudo rm -f /var/vm/sleepimage
defaults write NSGlobalDomain NSAppSleepDisabled -bool YES defaults write NSGlobalDomain NSAppSleepDisabled -bool YES
# Disable Keyboard Setup Assistant window # 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 sudo defaults write /Library/Preferences/com.apple.keyboardtype "keyboardtype" -dict-add "3-7582-0" -int 40
fi fi

View File

@@ -3,7 +3,7 @@
source ~/utils/utils.sh source ~/utils/utils.sh
# Close all finder windows because they can interfere with UI tests # 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 if is_Catalina; then
# Ignore available updates to prevent system pop-ups # Ignore available updates to prevent system pop-ups

View File

@@ -12,6 +12,11 @@ pip install --upgrade pip
echo "Install Python2 certificates" echo "Install Python2 certificates"
bash -c "/Applications/Python\ 2.7/Install\ Certificates.command" 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 # 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 # https://github.com/actions/virtual-environments/issues/2322
echo "Brew Installing Python 3" echo "Brew Installing Python 3"

View File

@@ -71,6 +71,14 @@ is_Less_Monterey() {
fi fi
} }
is_Veertu() {
if [ -d "/Library/Application Support/Veertu" ]; then
true
else
false
fi
}
get_toolset_path() { get_toolset_path() {
echo "$HOME/image-generation/toolset.json" echo "$HOME/image-generation/toolset.json"
} }
@@ -192,4 +200,9 @@ get_github_package_download_url() {
downloadUrl=$(echo $json | jq -r ".[] | select(.tag_name==\"${tagName}\").assets[].browser_download_url | select(${FILTER})" | head -n 1) downloadUrl=$(echo $json | jq -r ".[] | select(.tag_name==\"${tagName}\").assets[].browser_download_url | select(${FILTER})" | head -n 1)
echo $downloadUrl echo $downloadUrl
} }
# Close all finder windows because they can interfere with UI tests
close_finder_window() {
osascript -e 'tell application "Finder" to close windows'
}