Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS] Add parallels to macOS 15 images. #11749

Merged
merged 13 commits into from
Mar 11, 2025
2 changes: 1 addition & 1 deletion images/macos/scripts/build/configure-system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ close_finder_window
# Remove Parallels Desktop
# https://github.com/actions/runner-images/issues/6105
# https://github.com/actions/runner-images/issues/10143
if is_SonomaX64 || is_VenturaX64; then
if is_SonomaX64 || is_VenturaX64 || is_SequoiaX64; then
brew uninstall parallels
fi

Expand Down
11 changes: 7 additions & 4 deletions images/macos/scripts/build/install-common-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ for package in $cask_packages; do
done

# Load "Parallels International GmbH"
if is_SonomaX64 || is_VenturaX64; then
if is_SonomaX64 || is_VenturaX64 || is_SequoiaX64; then
sudo kextload /Applications/Parallels\ Desktop.app/Contents/Library/Extensions/10.9/prl_hypervisor.kext || true
fi

# Execute AppleScript to change security preferences for macOS12, macOS13 and macOS14
# Execute AppleScript to change security preferences for macOS12, macOS13, macOS14 and macOS15
# System Preferences -> Security & Privacy -> General -> Unlock -> Allow -> Not now
if is_SonomaX64 || is_VenturaX64; then
if is_SonomaX64 || is_VenturaX64 || is_SequoiaX64; then
for retry in {4..0}; do
echo "Executing AppleScript to change security preferences. Retries left: $retry"
{
Expand All @@ -54,6 +54,9 @@ if is_SonomaX64 || is_VenturaX64; then
if is_SonomaX64; then
osascript $HOME/utils/confirm-identified-developers-macos14.scpt $USER_PASSWORD
fi
if is_SequoiaX64; then
osascript $HOME/utils/confirm-identified-developers-macos15.scpt $USER_PASSWORD
fi
} && break

if [[ $retry -eq 0 ]]; then
Expand All @@ -67,7 +70,7 @@ if is_SonomaX64 || is_VenturaX64; then
fi

# Validate "Parallels International GmbH" kext
if is_SonomaX64 || is_VenturaX64; then
if is_SonomaX64 || is_VenturaX64 || is_SequoiaX64; then

echo "Closing System Settings window if it is still opened"
killall "System Settings" || true
Expand Down
7 changes: 5 additions & 2 deletions images/macos/scripts/docs-gen/Generate-SoftwareReport.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,15 @@ $android.AddTable($androidTable)
$androidEnv = $android.AddHeader("Environment variables")
$androidEnv.AddTable($(Build-AndroidEnvironmentTable))

if ($os.IsSonoma -or $os.IsVentura) {
if ($os.IsSonoma -or $os.IsVentura -or $os.IsSequoiaX64) {
$miscellaneous = $installedSoftware.AddHeader("Miscellaneous")
}

if ($os.IsSonoma -or $os.IsVentura) {
$miscellaneous.AddToolVersion("Tcl/Tk", $(Get-TclTkVersion))
}

if ($os.IsSonomaX64 -or $os.IsVenturaX64) {
if ($os.IsSonomaX64 -or $os.IsVenturaX64 -or $os.IsSequoiaX64) {

Write-Host "Adding environment variables for parallels"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This AppleScript clicks "Allow" for "System Software from developer "Parallels International GmbH"
# Steps:
# - Open System Settings -> Privacy & Security
# - Click 'Allow' for 'System Software from developer "Parallels International GmbH'
# - Enter password for runner

on run argv
set userpassword to item 1 of argv

tell application "System Settings"
activate
delay 5
end tell

tell application "System Events"
tell process "System Settings"
set frontmost to true
repeat until exists window 1
delay 2
end repeat

tell splitter group 1 of group 1 of window 1
select row 27 of outline 1 of scroll area 1 of group 1
delay 5
click UI element 1 of row 27 of outline 1 of scroll area 1 of group 1
delay 5
keystroke userpassword
delay 5
keystroke return
delay 5
end tell
end tell
end tell
end run
1 change: 1 addition & 0 deletions images/macos/templates/macOS-15.anka.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ build {
inline = [
"mv ${local.image_folder}/docs-gen ${local.image_folder}/software-report",
"mkdir ~/utils",
"mv ${local.image_folder}/helpers/confirm-identified-developers-macos15.scpt ~/utils",
"mv ${local.image_folder}/helpers/invoke-tests.sh ~/utils",
"mv ${local.image_folder}/helpers/utils.sh ~/utils"
]
Expand Down
2 changes: 1 addition & 1 deletion images/macos/toolsets/toolset-15.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"xcodes"
],
"cask_packages": [
""
"parallels"
]
},
"gcc": {
Expand Down