Skip to content

Commit

Permalink
Fix wrong product name for macOS 13
Browse files Browse the repository at this point in the history
  • Loading branch information
torarnv committed Jul 28, 2023
1 parent b8ef54e commit e21ba9c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ on [installing a plugin](https://www.packer.io/docs/extending/plugins/#installin

## Usage

To fetch information about the latest macOS Big Sur release:
To fetch information about the latest macOS Ventura release:

```hcl
data "ipsw" "bigsur" {
data "ipsw" "ventura" {
os = "macOS"
version = "^13"
device = "VirtualMac2,1"
}
```

Then use result via e.g. `${data.ipsw.bigsur.version}` and `${data.ipsw.bigsur.url}`.
Then use result via e.g. `${data.ipsw.ventura.version}` and `${data.ipsw.ventura.url}`.

## Configuration

Expand Down
40 changes: 20 additions & 20 deletions datasource/test-fixtures/template.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ variable "appledb_test_path" {
type = string
}

data "ipsw" "bigsur" {
data "ipsw" "ventura" {
os = "macOS"
version = "^13"
device = "VirtualMac2,1"
Expand All @@ -14,7 +14,7 @@ data "ipsw" "bigsur" {
appledb_local_path = var.appledb_test_path
}

data "ipsw" "bigsur-beta" {
data "ipsw" "ventura-beta" {
os = "macOS"
version = "^13-0"
device = "VirtualMac2,1"
Expand All @@ -34,29 +34,29 @@ build {

provisioner "shell-local" {
inline = [
"echo '${data.ipsw.bigsur.os} ${data.ipsw.bigsur.version}'",
"echo '${data.ipsw.bigsur.version_components.major}' | grep 13",
"echo '${data.ipsw.bigsur.version_components.minor}' | grep 4",
"echo '${data.ipsw.bigsur.version_components.patch}' | grep 1",
"echo '${data.ipsw.bigsur.version_components.prerelease}' | grep '^$'",
"echo '${data.ipsw.bigsur.version_components.metadata}' | grep 22F82",
"echo '${data.ipsw.bigsur.released}' | grep 2023-06-21",
"echo '${data.ipsw.bigsur.beta}' | grep false",
"echo '${data.ipsw.bigsur.url}' | grep 22F82",
"echo '${data.ipsw.ventura.os} ${data.ipsw.ventura.version}'",
"echo '${data.ipsw.ventura.version_components.major}' | grep 13",
"echo '${data.ipsw.ventura.version_components.minor}' | grep 4",
"echo '${data.ipsw.ventura.version_components.patch}' | grep 1",
"echo '${data.ipsw.ventura.version_components.prerelease}' | grep '^$'",
"echo '${data.ipsw.ventura.version_components.metadata}' | grep 22F82",
"echo '${data.ipsw.ventura.released}' | grep 2023-06-21",
"echo '${data.ipsw.ventura.beta}' | grep false",
"echo '${data.ipsw.ventura.url}' | grep 22F82",
]
}

provisioner "shell-local" {
inline = [
"echo '${data.ipsw.bigsur-beta.os} ${data.ipsw.bigsur-beta.version}'",
"echo '${data.ipsw.bigsur-beta.version_components.major}' | grep 13",
"echo '${data.ipsw.bigsur-beta.version_components.minor}' | grep 5",
"echo '${data.ipsw.bigsur-beta.version_components.patch}' | grep 0",
"echo '${data.ipsw.bigsur-beta.version_components.prerelease}' | grep beta.5",
"echo '${data.ipsw.bigsur-beta.version_components.metadata}' | grep 22G5072a",
"echo '${data.ipsw.bigsur-beta.released}' | grep 2023-07-10",
"echo '${data.ipsw.bigsur-beta.beta}' | grep true",
"echo '${data.ipsw.bigsur-beta.url}' | grep 22G5072a",
"echo '${data.ipsw.ventura-beta.os} ${data.ipsw.ventura-beta.version}'",
"echo '${data.ipsw.ventura-beta.version_components.major}' | grep 13",
"echo '${data.ipsw.ventura-beta.version_components.minor}' | grep 5",
"echo '${data.ipsw.ventura-beta.version_components.patch}' | grep 0",
"echo '${data.ipsw.ventura-beta.version_components.prerelease}' | grep beta.5",
"echo '${data.ipsw.ventura-beta.version_components.metadata}' | grep 22G5072a",
"echo '${data.ipsw.ventura-beta.released}' | grep 2023-07-10",
"echo '${data.ipsw.ventura-beta.beta}' | grep true",
"echo '${data.ipsw.ventura-beta.url}' | grep 22G5072a",
]
}
}
6 changes: 3 additions & 3 deletions docs/datasources/ipsw.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ data and IPSW URLs for builders such as [Tart](https://github.com/cirruslabs/pac

## Usage

To fetch information about the latest macOS Big Sur release:
To fetch information about the latest macOS Ventura release:

```hcl
data "ipsw" "bigsur" {
data "ipsw" "ventura" {
os = "macOS"
version = "^13"
device = "VirtualMac2,1"
}
```

Then use result via e.g. `${data.ipsw.bigsur.version}` and `${data.ipsw.bigsur.url}`.
Then use result via e.g. `${data.ipsw.ventura.version}` and `${data.ipsw.ventura.url}`.

## Configuration

Expand Down

0 comments on commit e21ba9c

Please sign in to comment.