{
    "version": "4.4.165",
    "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": "Proprietary",
    "notes": "Register 'URL:Stremio Protocol' via `reg import \"$dir\\install-context.reg\"`",
    "url": "https://dl.strem.io/shell-win/v4.4.165/Stremio+4.4.165.exe#/dl.7z",
    "hash": "df430e88e62b426b7c75ba29eb28eff3b77714999a28c6f9aa9172085f78cd3a",
    "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": {
        "url": "https://api.github.com/repositories/197275551/contents/manifests/s/Stremio/Stremio",
        "jsonpath": "$..name",
        "regex": "([\\d.]+)",
        "reverse": true
    },
    "autoupdate": {
        "url": "https://dl.strem.io/shell-win/v$version/Stremio+$version.exe#/dl.7z"
    }
}
