Skip to content

Commit 8b79c50

Browse files
committed
Upgrade to Catalina
1 parent d741ca7 commit 8b79c50

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

README.md

+8-10
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,24 @@
22

33
Packer templates to build [macOS Anka images](https://veertu.com/anka-technology/) to use in CI:
44

5-
* `mojave-base` image has only `brew` pre-installed
6-
* `mojave-xcode-10.1` image is based of `mojave-base` and has only `Xcode 10.1` pre-installed
7-
* `mojave-xcode-10.2` image is based of `mojave-base` and has only `Xcode 10.2` pre-installed
8-
* `mojave-xcode-11.2.1` image is based of `mojave-base` and has only `Xcode 11.2.1` pre-installed
9-
* `mojave-flutter` image is based of `mojave-xcode-11.2.1` and has only [`Flutter`](https://flutter.dev/) pre-installed
5+
* `catalina-base` image has only `brew` pre-installed
6+
* `catalina-xcode-11.3.1` image is based of `catalina-base` and has only `Xcode 11.3.1` pre-installed
7+
* `catalina-flutter` image is based of `catalina-xcode-11.3.1` and has only [`Flutter`](https://flutter.dev/) pre-installed
108

119
## Building Base Image
1210

1311
First, run `./scripts/install-anka-builder.sh` to install Anka builder for Packer.
1412

15-
To build the base image (you need to have `/Applications/Install macOS Mojave.app/` installed from App Store):
13+
To build the base image (you need to have `/Applications/Install macOS Catalina.app/` installed from App Store):
1614

1715
```bash
18-
packer build templates/mojave-base.json
16+
packer build templates/catalina-base.json
1917
```
2018

21-
We also need to add a port forwarding rule so VMs based of `mojave-base` image can be SSHable:
19+
We also need to add a port forwarding rule so VMs based of `catalina-base` image can be SSHable:
2220

2321
```bash
24-
anka modify mojave-base add port-forwarding --host-port 0 --guest-port 22 --protocol tcp ssh
22+
anka modify catalina-base add port-forwarding --host-port 0 --guest-port 22 --protocol tcp ssh
2523
```
2624

2725
## Building Xcode Images
@@ -30,5 +28,5 @@ To build an Xcode image (don't forget to setup `FASTLANE_USER` and `FASTLANE_PAS
3028
[xcode-install](https://github.com/KrauseFx/xcode-install#usage)):
3129

3230
```bash
33-
packer build -var xcode_version="11.2.1" templates/mojave-xcode.json
31+
packer build -var xcode_version="11.3.1" templates/catalina-xcode.json
3432
```

templates/mojave-base.json templates/catalina-base.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"builders": [
33
{
44
"type": "veertu-anka",
5-
"vm_name": "mojave-base",
6-
"installer_app": "/Applications/Install macOS Mojave.app/",
5+
"vm_name": "catalina-base",
6+
"installer_app": "/Applications/Install macOS Catalina.app/",
77
"cpu_count": "2",
88
"ram_size": "8G",
99
"disk_size": "80G",

templates/mojave-flutter.json templates/catalina-flutter.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"variables": {
14-
"xcode_version": "11.3"
14+
"xcode_version": "11.3.1"
1515
},
1616
"provisioners": [
1717
{

templates/mojave-xcode.json templates/catalina-xcode.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"builders": [
33
{
44
"type": "veertu-anka",
5-
"vm_name": "mojave-xcode-{{user `xcode_version`}}",
6-
"source_vm_name": "mojave-base",
5+
"vm_name": "catalina-xcode-{{user `xcode_version`}}",
6+
"source_vm_name": "catalina-base",
77
"cpu_count": "2",
88
"ram_size": "8G",
99
"disk_size": "80G",
@@ -13,7 +13,7 @@
1313
"variables": {
1414
"fastlane_user": "{{env `FASTLANE_USER`}}",
1515
"fastlane_password": "{{env `FASTLANE_PASSWORD`}}",
16-
"xcode_version": "11.3"
16+
"xcode_version": "11.3.1"
1717
},
1818
"provisioners": [
1919
{

0 commit comments

Comments
 (0)