* vanilla-ventura.pkr.hcl: update to the latest beta 10 release * Fix indentation |
||
|---|---|---|
| templates | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
README.md
macOS Packer Templates for Cirrus CI
Repository with Packer templates to build Tart VMs to use with Cirrus CI.
macos-{monterey,ventura}-vanillaimage nothing pre-installedmacos-{monterey,ventura}-baseimage has onlybrewpre-installedmacos-{monterey,ventura}-xcode:Nimage is based ofmacos-{monterey,ventura}-baseand hasXcode NwithFlutterpre-installed
See a full list of VMs available on Cirrus CI here.
Building Vanilla Image
First, create a ventura-vanilla VM from the latest available IPSW with following command:
tart create --from-ipsw=latest --disk-size=25 ventura-vanilla
Start the VM and use UI to change some settings:
tart run ventura-vanilla
- Disable Lock Screen and Screen Saver. Preferences -> Lock Screen -> disable first three settings.
- Enable Auto-Login. Users & Groups -> Automatic log in as... -> admin.
- Allow SSH. General -> Sharing -> Remote Login & Screen Sharing
- Display -> Advanced -> Prevent from sleeping
- Open Safari. Preferences -> Advanced -> Show Developer menu. Develop -> Allow Remote Automation.
- (Optional, depends on your needs) Disable SIP. Run
tart run --recovery ventura-vanilla-> Options -> Utilities menu -> Terminal ->csrutil disable. - Enable passwordless
sudo:- Run
sudo visudo /private/etc/sudoers.d/admin-passwordlessin Terminal. - Add
admin ALL = (ALL) NOPASSWD: ALLto allowsudowithout a password. :wqto write the file and quit.sudosome command to verify no password is needed.
- Run
Shutdown macOS.
Building Base Image
packer build templates/base.pkr.hcl
Building Xcode Images
packer build -var xcode_version="14-beta-5" templates/xcode.pkr.hcl