-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
openvpn.json
64 lines (64 loc) · 3.16 KB
/
openvpn.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
{
"##": "Renaming .msi to .msi_ to avoid auto extraction",
"version": "2.6.12-I001",
"description": "A flexible virtual private network (VPN) solution to secure data communications.",
"homepage": "https://openvpn.net",
"license": "GPL-2.0-only",
"suggest": {
"openssl": "openssl"
},
"architecture": {
"64bit": {
"url": "https://swupdate.openvpn.org/community/releases/OpenVPN-2.6.12-I001-amd64.msi#/setup.msi_",
"hash": "525759fe9e52a77a7d2cad99f5af1923d7d3027cab775ccfb7469ce0fd2b1758"
},
"32bit": {
"url": "https://swupdate.openvpn.org/community/releases/OpenVPN-2.6.12-I001-x86.msi#/setup.msi_",
"hash": "bf602bc08b9231dc59c19019ee91e35b9a70e66b2a076a170950380c91e80562"
},
"arm64": {
"url": "https://swupdate.openvpn.org/community/releases/OpenVPN-2.6.12-I001-arm64.msi#/setup.msi_",
"hash": "4c37a6d855c5f63ff5988d2bc24b619f55338f98799e1497f657e5e777544c8b"
}
},
"pre_install": [
"if ([Environment]::OSVersion.Version.Major -lt 10) { error 'Windows 10 is required since version 2.4.8. Use \"versions/openvpn-w7\" instead'; break }",
"if (-not (is_admin)) { error 'Administrator privileges are needed for installation'; break }",
"Invoke-ExternalCommand msiexec -ArgumentList @('/i', \"`\"$dir\\setup.msi_`\"\", \"PRODUCTDIR=`\"$dir`\"\", 'ADDLOCAL=OpenVPN.GUI,OpenVPN.Service,OpenVPN.Documentation,OpenVPN.SampleCfg,OpenSSL,EasyRSA,OpenVPN,OpenVPN.GUI.OnLogon,Drivers.TAPWindows6,Drivers,Drivers.Wintun', '/passive') -RunAs | Out-Null",
"if (Test-Path \"$persist_dir\\config\") { Copy-Item \"$persist_dir\\config\" \"$dir\\\" -Force -Recurse }",
"else { Copy-Item \"$dir\\sample-config\\*\" \"$dir\\config\\\" }",
"Remove-Item \"$Env:Public\\Desktop\\OpenVPN*.lnk\""
],
"pre_uninstall": [
"# Persist manually because the uninstaller deletes the 'config' folder",
"if (Test-Path \"$dir\\config\") {",
" ensure \"$persist_dir\" | Out-Null",
" Copy-Item \"$dir\\config\" \"$persist_dir\\\" -Force -Recurse",
"}",
"Stop-Process -Name 'openvpn*' -Force -ErrorAction SilentlyContinue"
],
"uninstaller": {
"script": [
"if (-not (is_admin)) { error 'Admin privileges are needed.'; break }",
"Invoke-ExternalCommand msiexec -ArgumentList ('/x', \"`\"$dir\\setup.msi_`\"\", '/passive') -RunAs | Out-Null"
]
},
"bin": "bin\\openvpn.exe",
"checkver": {
"url": "https://openvpn.net/index.php/open-source/downloads.html",
"regex": "OpenVPN-([\\d.]+-I[\\d]+)-amd64\\.msi"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://swupdate.openvpn.org/community/releases/OpenVPN-$version-amd64.msi#/setup.msi_"
},
"32bit": {
"url": "https://swupdate.openvpn.org/community/releases/OpenVPN-$version-x86.msi#/setup.msi_"
},
"arm64": {
"url": "https://swupdate.openvpn.org/community/releases/OpenVPN-$version-arm64.msi#/setup.msi_"
}
}
}
}