From 537e5684fe7092b3838eeffa9e5cb60c2d62fa22 Mon Sep 17 00:00:00 2001 From: fedor Date: Fri, 9 Dec 2022 16:35:02 -0500 Subject: [PATCH] macOS 13.1 and Xcode 14.2 Also fixed #65 --- README.md | 11 +++++++---- templates/base.pkr.hcl | 8 ++++---- templates/vanilla-ventura.pkr.hcl | 2 +- templates/xcode.pkr.hcl | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 37b8363..d1e1963 100644 --- a/README.md +++ b/README.md @@ -12,20 +12,23 @@ See a full list of VMs available on Cirrus CI [here](https://github.com/orgs/cir To build `macos-monterey-vanilla`: -``` +```bash packer build templates/vanilla-monterey.pkr.hcl ``` To build `macos-ventura-vanilla`: -``` -packer build --verbose templates/vanilla-ventura.pkr.hcl +```bash +packer build templates/vanilla-ventura.pkr.hcl ``` Optionally, SIP can be disabled for each image by running the following commands: -``` +```bash packer build -var vm_name=monterey-vanilla templates/disable-sip.pkr.hcl +``` + +```bash packer build -var vm_name=ventura-vanilla templates/disable-sip.pkr.hcl ``` diff --git a/templates/base.pkr.hcl b/templates/base.pkr.hcl index 504b098..c685c34 100644 --- a/templates/base.pkr.hcl +++ b/templates/base.pkr.hcl @@ -22,7 +22,7 @@ source "tart-cli" "tart" { vm_name = "${var.macos_version}-base" cpu_count = 4 memory_gb = 8 - disk_size_gb = 40 + disk_size_gb = 50 ssh_password = "admin" ssh_username = "admin" ssh_timeout = "120s" @@ -66,9 +66,9 @@ build { "brew install rbenv", "echo 'if which rbenv > /dev/null; then eval \"$(rbenv init -)\"; fi' >> ~/.zprofile", "source ~/.zprofile", - "rbenv install 3.0.4", - "rbenv global 3.0.4", - "sudo gem install bundler", + "rbenv install 3.0.5", + "rbenv global 3.0.5", + "gem install bundler", ] } provisioner "shell" { diff --git a/templates/vanilla-ventura.pkr.hcl b/templates/vanilla-ventura.pkr.hcl index 12aa7ab..1e7a7a5 100644 --- a/templates/vanilla-ventura.pkr.hcl +++ b/templates/vanilla-ventura.pkr.hcl @@ -10,7 +10,7 @@ packer { source "tart-cli" "tart" { # You can find macOS IPSW URLs on various websites like https://ipsw.me/ # and https://www.theiphonewiki.com/wiki/Beta_Firmware/Mac/13.x - from_ipsw = "https://updates.cdn-apple.com/2022FallFCS/fullrestores/012-92188/2C38BCD1-2BFF-4A10-B358-94E8E28BE805/UniversalMac_13.0_22A380_Restore.ipsw" + from_ipsw = "https://updates.cdn-apple.com/2022FallFCS/fullrestores/012-60270/0A7F49BA-FC31-4AD9-8E45-49B1FB9128A6/UniversalMac_13.1_22C65_Restore.ipsw" vm_name = "ventura-vanilla" cpu_count = 4 memory_gb = 8 diff --git a/templates/xcode.pkr.hcl b/templates/xcode.pkr.hcl index ad8cd4d..b1a0dfa 100644 --- a/templates/xcode.pkr.hcl +++ b/templates/xcode.pkr.hcl @@ -14,7 +14,7 @@ variable "macos_version" { variable "xcode_version" { type = string - default = "14.1" + default = "14.2-RC" } source "tart-cli" "tart" {