-
Notifications
You must be signed in to change notification settings - Fork 26
/
pwsh-preview.yml
63 lines (61 loc) · 2.53 KB
/
pwsh-preview.yml
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.5.0-preview.5
description: PowerShell Core Preview. 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.5.0-preview.5
architecture:
64bit:
url: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.5/PowerShell-7.5.0-preview.5-win-x64.zip
hash: a6eba1e19528680c7366753aace893ab680f75142685ebfc0a982d27f92d31b8
32bit:
url: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.5/PowerShell-7.5.0-preview.5-win-x86.zip
hash: a5ab015756b265ed6d1702835c981ae31fb92a5585930bacc4a7ba38b3f6eba7
arm64:
url: https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.5/PowerShell-7.5.0-preview.5-win-arm64.zip
hash: c7d7906ca97dc2cd4926a45ef2cb6b7400cad3d05b073893e9a53945600ae01a
pre_install: |
Test-Persistence 'Microsoft.PowerShell_profile.ps1', 'profile.ps1'
#### 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
Out-UTF8File $INS_REG $content
$content = (New-Object System.Net.WebClient).DownloadString("$GIST/pwsh-context-un.reg")
Out-UTF8File $UNINS_REG $content
#### Append registry
regedit /s $INS_REG
pre_uninstall: |
#### Remove registry entry
regedit /s "$dir\pwsh-context-un.reg"
bin:
- - pwsh.exe
- pwsh-preview
- -NoLogo
shortcuts:
- - pwsh.exe
- PowerShell Core Preview
- -NoLogo
persist:
- Microsoft.PowerShell_profile.ps1
- profile.ps1
checkver:
url: https://www.github.com/PowerShell/PowerShell/releases
regex: tree/v([\d.]+-[\w.]+)
autoupdate:
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: $baseurl/hashes.sha256