mirror of
https://github.com/cirruslabs/macos-image-templates.git
synced 2026-10-18 22:48:31 +02:00
Fixed Simulator Opening (#146)
This commit is contained in:
+13
-1
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user