diff --git a/bucket/crc.json b/bucket/crc.json new file mode 100644 index 0000000000..ab73e316b2 --- /dev/null +++ b/bucket/crc.json @@ -0,0 +1,38 @@ +{ + "version": "1.34.0-4.9.0", + "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/1.34.0/crc-windows-installer.zip", + "hash": "4c136278f1b13c22fb6941f6e7e0462f951a88bef19d94683c8db0c49e00bf50", + "pre_install": [ + "# The trailing backslash(\\) in $dir\\\\ is required by lessmsi.", + "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": { + "github": "https://github.com/code-ready/crc", + "regex": "Release\\s([\\d.]+-[\\d.]+)" + }, + "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" + } + } +}