{ "version": "7.2.2", "description": "Cross-platform automation and configuration tool/framework, known as Powershell Core, that works well with existing tools and is optimized for dealing with structured data.", "homepage": "https://github.com/PowerShell/PowerShell", "license": "MIT", "notes": [ "Add PowerShell Core as a explorer context menu by running: '$dir\\install-explorer-context.reg'", "For file context menu, run '$dir\\install-file-context.reg'" ], "architecture": { "64bit": { "url": "https://github.com/PowerShell/PowerShell/releases/download/v7.2.2/PowerShell-7.2.2-win-x64.zip", "hash": "e639b5f47d6d39b5942df70ada4a69a1c85616747622582eedfb197b8ccad298" }, "32bit": { "url": "https://github.com/PowerShell/PowerShell/releases/download/v7.2.2/PowerShell-7.2.2-win-x86.zip", "hash": "4964b5ead228b518197e528fda9e5d771037896fa8091ab4c2bd71b2e0a3a021" } }, "pre_install": [ "'Microsoft.PowerShell_profile.ps1', 'profile.ps1' | ForEach-Object {", " if (!(Test-Path \"$persist_dir\\$_\")) { New-Item \"$dir\\$_\" | Out-Null }", "}" ], "post_install": [ "if ($architecture -eq '32bit') { $pwshArch = 'x86' } else { $pwshArch = 'x64' }", "$pwshPath = \"$dir\\pwsh.exe\".Replace('\\', '\\\\')", "'install-explorer-context', 'uninstall-explorer-context', 'install-file-context' , 'uninstall-file-context' | ForEach-Object {", " if (Test-Path \"$bucketsdir\\main\\scripts\\pwsh\\$_.reg\") {", " $content = (Get-Content \"$bucketsdir\\main\\scripts\\pwsh\\$_.reg\").Replace('$pwshPath', $pwshPath)", " $content = $content.Replace('$pwshArch', $pwshArch)", " if ($global) { $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE') }", " Set-Content \"$dir\\$_.reg\" $content -Encoding Ascii -Force", " }", "}" ], "bin": "pwsh.exe", "shortcuts": [ [ "pwsh.exe", "PowerShell Core", "-WorkingDirectory ~" ] ], "persist": [ "Microsoft.PowerShell_profile.ps1", "profile.ps1" ], "checkver": "github", "autoupdate": { "architecture": { "64bit": { "url": "https://github.com/PowerShell/PowerShell/releases/download/v$version/PowerShell-$version-win-x64.zip" }, "32bit": { "url": "https://github.com/PowerShell/PowerShell/releases/download/v$version/PowerShell-$version-win-x86.zip" } }, "hash": { "url": "https://github.com/PowerShell/PowerShell/releases/tag/v$version/", "regex": "$basename\\s*