generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wireguard-np.json
63 lines (63 loc) · 2.53 KB
/
wireguard-np.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
{
"version": "0.5.3",
"description": "VPN client",
"homepage": "https://www.wireguard.com",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://download.wireguard.com/windows-client/wireguard-amd64-0.5.3.msi#/setup.msi_",
"hash": "76fcec042c5989c5b816cd32eaed1e5b1c3b998a4b1c9eca55f299e3314ef7e4"
},
"32bit": {
"url": "https://download.wireguard.com/windows-client/wireguard-x86-0.5.3.msi#/setup.msi_",
"hash": "ad1af1ae3474ef35de3809979aee98758430881b270e47e89e027b3490791d0d"
}
},
"installer": {
"script": [
"if (is_admin){",
" Invoke-ExternalCommand msiexec -ArgumentList @('/i', \"$dir\\setup.msi_\", '/qn', '/norestart') | Out-Null",
"",
" while ($wireguard_process -eq $null) {",
" Start-Sleep -Milliseconds 250",
" $wireguard_process = Get-Process | Where-Object { $_.name -eq 'wireguard' }",
" }",
"",
" $wireguard_process | ForEach-Object { Stop-Process -Id $_.Id -Force }",
"}",
"elseif (Get-Command sudo) {",
" Start-Process msiexec -ArgumentList @('/i', \"$dir\\setup.msi_\", '/qn', '/norestart') -Wait -Verb RunAs | Out-Null",
"",
" while ($wireguard_process -eq $null) {",
" Start-Sleep -Milliseconds 250",
" $wireguard_process = Get-Process | Where-Object { $_.name -eq 'wireguard' }",
" }",
" $wireguard_process | ForEach-Object { sudo Stop-Process -Id $_.Id -Force }",
"}",
"else{",
" error \"Administrator rights are required to install $app.\"",
" break",
"}"
]
},
"uninstaller": {
"script": [
"Start-Process msiexec -ArgumentList @('/x', \"$dir\\setup.msi_\", '/qn', '/norestart') -Wait -Verb RunAs | Out-Null"
]
},
"checkver": {
"url": "https://download.wireguard.com/windows-client/",
"regex": "wireguard-amd64-([\\d.]+)\\.msi",
"reverse": true
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://download.wireguard.com/windows-client/wireguard-amd64-$version.msi#/setup.msi_"
},
"32bit": {
"url": "https://download.wireguard.com/windows-client/wireguard-x86-$version.msi#/setup.msi_"
}
}
}
}