{
    "version": "4.4.182",
    "description": "A modern media center that's a one-stop solution for your video entertainment. You discover, watch and organize video content from easy to install addons.",
    "homepage": "https://www.stremio.com/",
    "license": {
        "identifier": "Proprietary",
        "url": "https://www.stremio.com/tos"
    },
    "notes": [
        "For the URL protocol (used to launch the app from web pages), run:",
        "reg import \"$dir\\install-context.reg\""
    ],
    "url": "https://dl.strem.io/shell-win/v4.4.182/Stremio+4.4.182.exe#/dl.7z",
    "hash": "543d2dc82df188b4e1242000f21e9d2c7376f4a30646fc5038816986b5dccd85",
    "pre_install": "Remove-Item \"$dir\\`$*\" -Recurse",
    "post_install": [
        "'install-context', 'uninstall-context' | ForEach-Object {",
        "    if (Test-Path \"$bucketsdir\\extras\\scripts\\stremio\\$_.reg\") {",
        "        $sPath = \"$dir\\stremio.exe\".Replace('\\', '\\\\')",
        "        $content = (Get-Content \"$bucketsdir\\extras\\scripts\\stremio\\$_.reg\").Replace('$stremioexe', $sPath)",
        "        if ($global) { $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE') }",
        "        Set-Content \"$dir\\$_.reg\" $content -Encoding Ascii -Force",
        "    }",
        "}"
    ],
    "shortcuts": [
        [
            "stremio.exe",
            "Stremio"
        ]
    ],
    "pre_uninstall": [
        "Stop-Process -Name 'stremio.exe' -ErrorAction SilentlyContinue",
        "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" }"
    ],
    "checkver": {
        "script": [
            "$request = [System.Net.HttpWebRequest]::Create('https://www.strem.io/download?platform=windows&four=true')",
            "$response = $request.GetResponse()",
            "Write-Output $response.ResponseUri.AbsoluteUri"
        ],
        "regex": "shell-win/v(?<version>[\\d.]+)/Stremio\\+\\k<version>\\.exe"
    },
    "autoupdate": {
        "url": "https://dl.strem.io/shell-win/v$version/Stremio+$version.exe#/dl.7z"
    }
}
