diff --git a/bucket/mullvadvpn-np.json b/bucket/mullvadvpn-np.json index ca84dcfe..0bb042c7 100644 --- a/bucket/mullvadvpn-np.json +++ b/bucket/mullvadvpn-np.json @@ -1,34 +1,38 @@ { - "version": "2023.6", - "homepage": "https://mullvad.net/en/", + "version": "2024.5", "description": "The official desktop client for Mullvad VPN, a privacy-respecting VPN service.", + "homepage": "https://mullvad.net/en/vpn", "license": "GPL-3.0", "architecture": { "64bit": { - "url": "https://mullvad.net/media/app/MullvadVPN-2023.6.exe#/setup.exe", - "hash": "1a212857d3edcfe44cfdf0ac50db27a1fb325721f7fd9aa9a1e8fcc8b4bda64c" + "url": "https://github.com/mullvad/mullvadvpn-app/releases/download/2024.5/MullvadVPN-2024.5.exe#/setup.exe", + "hash": "5411fef047adadb03e49ab2b9f5b5efd0b1ab4f8c544dd4842582444895462c8" } }, - "pre_install": [ - "if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }", - "Start-Process \"$dir\\setup.exe\" -Verb 'RunAs' -Args @('/allusers', '/S')", - "while (!(Get-Process -Name 'mullvad-daemon' -ErrorAction 'SilentlyContinue')) { Start-Sleep -Seconds 5 }", - "Remove-Item \"$dir\\setup.exe\"" - ], - "pre_uninstall": [ - "if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }", - "Stop-Service -Name 'MullvadVPN' -ErrorAction 'SilentlyContinue' -Force; Stop-Process -Name 'Mullvad VPN' -ErrorAction 'SilentlyContinue' -Force", - "Start-Process \"$env:ProgramFiles\\Mullvad VPN\\Uninstall Mullvad VPN.exe\" -Wait -Verb 'RunAs' -Args @('/allusers', '/S')", - "Start-Sleep -Seconds 2" - ], + "installer": { + "script": [ + "if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }", + "Start-Process \"$dir\\setup.exe\" -Verb 'RunAs' -Args @('/allusers', '/S')", + "while (!(Get-Process -Name 'mullvad-daemon' -ErrorAction 'SilentlyContinue')) { Start-Sleep -Seconds 5 }", + "Remove-Item \"$dir\\setup.exe\"" + ] + }, + "uninstaller": { + "script": [ + "if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }", + "Stop-Service -Name 'MullvadVPN' -ErrorAction 'SilentlyContinue' -Force; Stop-Process -Name 'Mullvad VPN' -ErrorAction 'SilentlyContinue' -Force", + "Start-Process \"$env:ProgramFiles\\Mullvad VPN\\Uninstall Mullvad VPN.exe\" -Wait -Verb 'RunAs' -Args @('/allusers', '/S')", + "Start-Sleep -Seconds 2" + ] + }, "checkver": { - "url": "https://mullvad.net/en/download/windows/", - "regex": ">Latest\\sversion:\\s([\\d.]+)" + "url": "https://api.mullvad.net/app/v1/releases/windows/$version", + "jsonpath": "$.latest_stable" }, "autoupdate": { "architecture": { "64bit": { - "url": "https://mullvad.net/media/app/MullvadVPN-$version.exe#/setup.exe" + "url": "https://github.com/mullvad/mullvadvpn-app/releases/download/$version/MullvadVPN-$version.exe#/setup.exe" } } }