{
    "version": "0.92.17",
    "description": "High quality DirectShow video renderer",
    "homepage": "http://madvr.com",
    "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"
    ],
    "installer": {
        "script": [
            "if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
            "sudo \"$dir\\install.bat\""
        ]
    },
    "uninstaller": {
        "script": [
            "if (!(is_admin)) { error \"$app requires admin rights to $cmd\"; break }",
            "sudo \"$dir\\uninstall.bat\""
        ]
    },
    "shortcuts": [
        [
            "madTPG.exe",
            "madTPG"
        ],
        [
            "madLevelsTweaker.exe",
            "NVidia & Intel RGB Levels Tweaker"
        ],
        [
            "madHcCtrl.exe",
            "mad Home Cinema Control"
        ]
    ],
    "persist": "settings.bin",
    "checkver": "latest release v([\\d.]+):",
    "autoupdate": {
        "url": "https://www.videohelp.com/download/madVR$cleanVersion.zip"
    }
}
