From 6f8a79ebdea4d437647c5b0b24f4b7a09eb9ff7a Mon Sep 17 00:00:00 2001 From: Darloli <96697399+SorYoshino@users.noreply.github.com> Date: Mon, 20 Oct 2025 22:36:13 +0800 Subject: [PATCH] madvr@0.92.17: Update homepage, improve scripts and checkver --- bucket/madvr.json | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/bucket/madvr.json b/bucket/madvr.json index d84f5c3972bc15..2fb97ff73657ee 100644 --- a/bucket/madvr.json +++ b/bucket/madvr.json @@ -1,26 +1,29 @@ { "version": "0.92.17", "description": "High quality DirectShow video renderer", - "homepage": "http://madvr.com", + "homepage": "https://madshi.net", "license": "Freeware", - "depends": "gsudo", "url": "https://www.videohelp.com/download/madVR09217.zip", "hash": "87e088f7b5de20d0a9065c73015d7fb7c225870380dd3169c70171b77e74bb97", "pre_install": [ - "if (-not (Test-Path \"$persist_dir\\settings.bin\")) { New-Item \"$dir\\settings.bin\" | Out-Null }", - "(Get-Content \"$dir\\install.bat\") -replace '@pause >nul' | Out-File \"$dir\\install.bat\" -Encoding Ascii -Force", - "(Get-Content \"$dir\\uninstall.bat\") -replace '@pause >nul' | Out-File \"$dir\\uninstall.bat\" -Encoding Ascii -Force" + "if (-not (Test-Path \"$persist_dir\\settings.bin\")) {", + " New-Item -Path \"$dir\\settings.bin\" -ItemType File -Force | Out-Null", + "}", + "'install', 'uninstall' | ForEach-Object {", + " $content = Get-Content -Path \"$dir\\$_.bat\" -Encoding Ascii", + " $content -replace '@pause >nul' | Set-Content -Path \"$dir\\$_.bat\" -Encoding Ascii -Force", + "}" ], "installer": { "script": [ - "if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }", - "sudo \"$dir\\install.bat\"" + "if (-not (is_admin)) { error \"$app requires admin rights to $cmd\"; break }", + "Invoke-Expression -Command \"$dir\\install.bat\"" ] }, "uninstaller": { "script": [ - "if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }", - "sudo \"$dir\\uninstall.bat\"" + "if (-not (is_admin)) { error \"$app requires admin rights to $cmd\"; break }", + "Invoke-Expression -Command \"$dir\\uninstall.bat\"" ] }, "shortcuts": [ @@ -38,7 +41,10 @@ ] ], "persist": "settings.bin", - "checkver": "latest release v([\\d.]+):", + "checkver": { + "url": "https://forum.doom9.org/showthread.php?t=146228", + "regex": ">madVR v([\\d.]+)" + }, "autoupdate": { "url": "https://www.videohelp.com/download/madVR$cleanVersion.zip" }