mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 22:31:19 +00:00
76 lines
3.4 KiB
JSON
76 lines
3.4 KiB
JSON
{
|
|
"version": "7.3.4",
|
|
"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": [
|
|
"Since Scoop uses pwsh.exe internally, to update PowerShell Core itself,",
|
|
"run `scoop update pwsh` from Windows PowerShell, i.e. powershell.exe.",
|
|
"",
|
|
"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.3.4/PowerShell-7.3.4-win-x64.zip",
|
|
"hash": "dbba20de5ec7388e4d70bfbd4359463d996df0b7521ba38f7598c2a7a3115c6f"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/PowerShell/PowerShell/releases/download/v7.3.4/PowerShell-7.3.4-win-x86.zip",
|
|
"hash": "7933b2d50f86c3c252474b5ad3bd4cc3e94aaea4cda1600d6c787c92561b4796"
|
|
},
|
|
"arm64": {
|
|
"url": "https://github.com/PowerShell/PowerShell/releases/download/v7.3.4/PowerShell-7.3.4-win-arm64.zip",
|
|
"hash": "08a4825ae39cfeb3ee9d35a5643918aa655ee349f43cfce509ff7d5927752f34"
|
|
}
|
|
},
|
|
"pre_install": [
|
|
"'Microsoft.VSCode_profile.ps1', '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.VSCode_profile.ps1",
|
|
"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"
|
|
},
|
|
"arm64": {
|
|
"url": "https://github.com/PowerShell/PowerShell/releases/download/v$version/PowerShell-$version-win-arm64.zip"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "https://github.com/PowerShell/PowerShell/releases/tag/v$version/",
|
|
"regex": "$basename\\s*<ul>\\s*<li>$sha256"
|
|
}
|
|
}
|
|
}
|