-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpwsh-preview.json
More file actions
63 lines (63 loc) · 2.77 KB
/
Copy pathpwsh-preview.json
File metadata and controls
63 lines (63 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"version": "7.3.0-preview.6",
"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",
"architecture": {
"64bit": {
"url": "https://github.com/PowerShell/PowerShell/releases/download/v7.3.0-preview.6/PowerShell-7.3.0-preview.6-win-x64.zip",
"hash": "c5384ab4678b0649800d123aa13fab89a0c05365f783e0090a63bc27d4839c3b"
},
"32bit": {
"url": "https://github.com/PowerShell/PowerShell/releases/download/v7.3.0-preview.6/PowerShell-7.3.0-preview.6-win-x86.zip",
"hash": "63705c88683b16dac9e0326cadb6e9870fa8bb151ca6f553a8b3f709fdc9c5ef"
}
},
"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 Preview",
"-WorkingDirectory ~"
]
],
"persist": [
"Microsoft.PowerShell_profile.ps1",
"profile.ps1"
],
"checkver": {
"url": "https://github.com/PowerShell/powershell/releases",
"re": "v(([\\d]).([\\d]).([\\d])-preview.([\\d]))"
},
"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*<ul>\\s*<li>$sha256"
}
}
}