Skip to content

Commit

Permalink
Update openvpn.json
Browse files Browse the repository at this point in the history
  • Loading branch information
arch3rPro committed Dec 6, 2024
1 parent 454850a commit 716abd0
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions bucket/openvpn.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,36 @@
{
"version": "3.5.1.3946",
"description": "The official OpenVPN Connect client software developed and maintained by OpenVPN Inc.",
"description": "The official OpenVPN Connect client.(Scoop bucket by arch3rpro)",
"homepage": "https://openvpn.net",
"license": "GPL-2.0-only",
"architecture": {
"64bit": {
"url": "https://swupdate.openvpn.net/downloads/connect/openvpn-connect-3.5.1.3946_signed.msi#/setup.msi_",
"url": "https://swupdate.openvpn.net/downloads/connect/openvpn-connect-3.5.1.3946_signed.msi",
"hash": "ffd922b8afbcaf62079131d663e3eefb63ef173ad6cee6877b9d4945db43a7cf"
},
"32bit": {
"url": "https://swupdate.openvpn.net/downloads/connect/openvpn-connect-3.5.1.3946_signed_x86.msi#/setup.msi_",
"url": "https://swupdate.openvpn.net/downloads/connect/openvpn-connect-3.5.1.3946_signed_x86.msi",
"hash": "a3ec4ae45d960b9188174cc6184f192927419469e9f828d5669ccc66bc4bb724"
}
},
"installer": {
"script": [
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
"Start-Process 'msiexec' -Wait -Verb 'RunAs' -Args @('/i', \"$dir\\setup.msi_\", '/qn')",
"Stop-Process -Name 'OpenVPNConnect'"
]
},
"extract_dir": "OpenVPN Connect",
"pre_install": [
"# OpenVPN Connect cannot work under junctions ('current'), therefore we need to manually create the shortcut",
"$scoop_startmenu_folder = Join-Path $([Environment]::GetFolderPath($(if ($global) {'commonstartmenu'} else {'startmenu'}))) 'Programs\\Scoop Apps'",
"$exe_dir = versiondir 'openvpn-connect' $version",
"$wsShell = New-Object -ComObject WScript.Shell",
"$wsShell = $wsShell.CreateShortcut(\"$scoop_startmenu_folder\\OpenVPN Connect.lnk\")",
"$wsShell.TargetPath = \"$exe_dir\\OpenVPNConnect.exe\"",
"$wsShell.WorkingDirectory = \"$exe_dir\"",
"$wsShell.Save()"
],
"uninstaller": {
"script": [
"if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
"Start-Process 'msiexec' -Wait -Verb 'RunAs' -ArgumentList @('/x', \"$dir\\setup.msi_\", '/qn')"
"$scoop_startmenu_folder = Join-Path $([Environment]::GetFolderPath($(if ($global) {'commonstartmenu'} else {'startmenu'}))) 'Programs\\Scoop Apps'",
"Remove-Item \"$scoop_startmenu_folder\\OpenVPN Connect.lnk\" -Force"
]
},
"bin": "ovpnconnector.exe",
"checkver": {
"url": "https://openvpn.net/connect-docs/windows-release-notes.html",
"regex": "<h2 class=\"title\" style=\"clear: both\">([\\d.]+) \\(([\\d]+)\\)</h2>",
Expand Down

0 comments on commit 716abd0

Please sign in to comment.