2022-06-09 16:30:30 +00:00

40 lines
2.1 KiB
JSON

{
"version": "2.4.1",
"description": "Manages a local OpenShift 4.x cluster optimized for testing and development purposes.",
"homepage": "https://code-ready.github.io/crc/",
"license": "Apache-2.0",
"notes": "To acquire a pull secret, visit: https://cloud.redhat.com/openshift/install/crc/installer-provisioned",
"depends": "lessmsi",
"architecture": {
"64bit": {
"url": "https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/2.4.1/crc-windows-installer.zip",
"hash": "cee7b857309e674ae0a94464dae9af4b04e7459d543b878296f324d7cdbe90b3",
"pre_install": [
"# The trailing backslash(\\) in $dir\\ is required by lessmsi.",
"# '>nul', '2>&1' sets cmd stdout to $null, and stderr to stdout",
"Invoke-ExternalCommand lessmsi -ArgumentList @('x', \"$dir\\crc-windows-amd64.msi\", \"$dir\\\") | Out-Null",
"$tail = $version.Split('-')[1]",
"Invoke-ExternalCommand cmd -ArgumentList @('/c', 'copy', '/b', \"`\"$dir\\SourceDir\\CodeReady Containers\\crc_hyperv_$tail.crcbundle.*`\"\", \"`\"$dir\\crc_hyperv_$tail.crcbundle`\"\", '>nul', '2>&1') | Out-Null",
"Remove-Item \"$dir\\SourceDir\\CodeReady Containers\\crc_hyperv_$tail.crcbundle.*\", \"$dir\\*.cab\", \"$dir\\*.msi\" | Out-Null",
"Copy-Item \"$dir\\SourceDir\\CodeReady Containers\\*\" \"$dir\" -Force -Recurse | Out-Null",
"Remove-Item \"$dir\\SourceDir\" -Force -Recurse | Out-Null"
]
}
},
"bin": "crc.exe",
"checkver": {
"url": "https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/latest/release-info.json",
"jsonpath": "$.version.crcVersion"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/$matchHead/crc-windows-installer.zip"
}
},
"hash": {
"url": "$url.sha256"
}
}
}