Skip to content

Commit eff24a9

Browse files
[MacOS] Add closing System Preference window for arm64 (#8470)
1 parent d77bb13 commit eff24a9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

images/macos/provision/core/open_windows_check.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/bin/bash -e -o pipefail
22

3+
source ~/utils/utils.sh
4+
5+
# Close System Preferences window because in Ventura arm64 it is opened by default on Apperance tab
6+
if is_VenturaArm64; then
7+
echo "Close System Preferences window"
8+
osascript -e 'tell application "System Preferences" to quit'
9+
fi
10+
311
retry=10
412
while [ $retry -gt 0 ]; do
513
openwindows=$(osascript -e 'tell application "System Events" to get every window of (every process whose class of windows contains window)') && break

images/macos/templates/macOS-13.arm64.anka.pkr.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ build {
162162
provisioner "shell" {
163163
pause_before = "30s"
164164
scripts = [
165+
"./provision/core/open_windows_check.sh",
165166
"./provision/core/powershell.sh",
166167
"./provision/core/mono.sh",
167168
"./provision/core/dotnet.sh",

0 commit comments

Comments
 (0)