forked from Ash258/Shovel-Ash258
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpwsh.json
87 lines (87 loc) · 3.59 KB
/
pwsh.json
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"$schema": "https://raw.githubusercontent.com/Ash258/Scoop-Core/featArmBasicManifest/schema.json",
"version": "7.1.3",
"description": "PowerShell Core. Cross-Platform task automation and configuration management framework/tool.",
"homepage": "https://github.com/PowerShell/PowerShell",
"license": {
"identifier": "MIT",
"url": "https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt"
},
"changelog": "https://github.com/PowerShell/PowerShell/releases/tag/v7.1.3",
"architecture": {
"64bit": {
"url": "https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/PowerShell-7.1.3-win-x64.zip",
"hash": "47475f1d4015704f3fb5f6d2cf61196d121aba60c19592b04be818317ce01039"
},
"32bit": {
"url": "https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/PowerShell-7.1.3-win-x86.zip",
"hash": "ecfd51545084d9b791874062c39eb0c7c7dd2991265ee7f4dc5064995a614e6c"
},
"arm64": {
"url": "https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/PowerShell-7.1.3-win-arm64.zip",
"hash": "1cba41a2ecfe7745d376efde14499db59496455ebcb658c743a6297af11ced38"
}
},
"installer": {
"script": [
"try { Get-Command 'Test-Persistence' -ErrorAction 'Stop' | Out-Null } catch { error 'Shovel flavour of scoop is required'; exit 258 }",
"Test-Persistence 'profile.ps1'",
" #TODO: Adopt Edit-File",
" # Variables",
"$GIST = 'https://gist.githubusercontent.com/Ash258/e143436e2f9183a650424d635b535e51/raw'",
"$PWSH_PATH = \"$dir\".Replace('\\', '\\\\')",
"$INS_REG = \"$dir\\pwsh-context-ins.reg\"",
"$UNINS_REG = \"$dir\\pwsh-context-un.reg\"",
" # Downloading",
"$content = (New-Object System.Net.WebClient).DownloadString(\"$GIST/pwsh-context-ins.reg\")",
"$content = $content.Replace('%%dir%%', $PWSH_PATH)",
" # SET FILES",
"Set-Content $INS_REG $content -Encoding Ascii",
"$content = (New-Object System.Net.WebClient).DownloadString(\"$GIST/pwsh-context-un.reg\")",
"Set-Content $UNINS_REG $content -Encoding Ascii",
" # Append registry",
"regedit /s $INS_REG"
]
},
"uninstaller": {
"script": [
" # Remove registry entry",
"regedit /s \"$dir\\pwsh-context-un.reg\""
]
},
"bin": [
[
"pwsh.exe",
"pwsh",
"-NoLogo"
]
],
"shortcuts": [
[
"pwsh.exe",
"PowerShell Core",
"-NoLogo"
]
],
"persist": "profile.ps1",
"checkver": "github",
"autoupdate": {
"archive": true,
"changelog": "https://github.com/PowerShell/PowerShell/releases/tag/v$version",
"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"
}
}
}