{
    "version": "26.04-4416",
    "description": "Simple and easy-to-use music player",
    "homepage": "https://apps.kde.org/elisa",
    "license": "LGPL-3.0-only",
    "architecture": {
        "64bit": {
            "url": "https://cdn.kde.org/ci-builds/multimedia/elisa/release-26.04/windows/elisa-release_26.04-4416-windows-cl-msvc2022-x86_64.7z",
            "hash": "336e73a533faec64d5b7b226a94cbb34ac8843628fab775f69c9a85dbbb30056"
        }
    },
    "bin": "bin\\elisa.exe",
    "shortcuts": [
        [
            "bin\\elisa.exe",
            "Elisa"
        ]
    ],
    "checkver": {
        "script": [
            "$url = 'https://cdn.kde.org/ci-builds/multimedia/elisa/?C=N;O=D'",
            "",
            "$cont = (Invoke-WebRequest $url).Content",
            "$regex = 'release-([\\d.]+)'",
            "if (!($cont -match $regex)) { error \"Could not match $regex in $url\"; continue }",
            "$ver = $matches[1]",
            "",
            "$nextUrl = \"https://cdn.kde.org/ci-builds/multimedia/elisa/release-$ver/windows/\"",
            "$nextCont = (Invoke-WebRequest $nextUrl).Content",
            "$nextRegex = \"elisa-release_$ver-([\\d]+)-windows-cl-([\\w]+)-x86_64\\.7z\"",
            "if (!($nextCont -match $nextRegex)) { error \"Could not match $nextRegex in $nextUrl\"; continue }",
            "$build = $matches[1]",
            "$lib = $matches[2]",
            "Write-Output $ver-$build $lib"
        ],
        "regex": "([\\d.-]+) (?<lib>[\\w]+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://cdn.kde.org/ci-builds/multimedia/elisa/release-$matchHead/windows/elisa-release_$version-windows-cl-$matchLib-x86_64.7z",
                "hash": {
                    "url": "$url.sha256"
                }
            }
        }
    }
}
