mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-04 15:51:23 +00:00
crc: Fix extraction
* crc changed their file structure, need to modify accordingly * escape char `\" is not needed anymore * related: https://github.com/ScoopInstaller/Extras/issues/9026 * related: https://github.com/ScoopInstaller/Scoop/pull/5065
This commit is contained in:
parent
7a4ca69cbc
commit
bef9c55b2a
@ -11,12 +11,8 @@
|
||||
"hash": "da2153166ea6996eb3850aa196837df4e68bb1f841d37ca5ad5773400c1152bf",
|
||||
"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",
|
||||
"Copy-Item \"$dir\\SourceDir\\Red Hat OpenShift Local\\*\" \"$dir\" -Force -Recurse | Out-Null",
|
||||
"Remove-Item \"$dir\\SourceDir\" -Force -Recurse | Out-Null"
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user