Fixed Simulator Opening (#146)

This commit is contained in:
Fedor Korotkov
2024-05-01 15:39:25 +02:00
committed by GitHub
parent 2dcf12940d
commit 2cd59ec2b4
+13 -1
View File
@@ -103,6 +103,18 @@ build {
]
}
// warm up Xcodes by opening all of them, waiting a minute and trying to open Simulator app
// to make things clean we'll set ApplePersistence so on restart macOS won't try to reopen all the apps
provisioner "shell" {
inline = [
"source ~/.zprofile",
"defaults write -g ApplePersistence -bool no",
"open /Applications/Xcode*.app",
"sleep 60",
"open -a Simulator"
]
}
provisioner "shell" {
inline = [
"source ~/.zprofile",
@@ -164,7 +176,7 @@ build {
"source ~/.zprofile",
"df -h",
"export FREE_MB=$(df -m | awk '{print $4}' | head -n 2 | tail -n 1)",
"[[ $FREE_MB -gt 20000 ]] && echo OK || exit 1"
"[[ $FREE_MB -gt 15000 ]] && echo OK || exit 1"
]
}
}