{
    "version": "20260506",
    "description": "A free and open source multimedia player and framework that plays most multimedia files as well as DVDs, Audio CDs, VCDs, and various streaming protocols.",
    "homepage": "https://www.videolan.org/",
    "license": "GPL-2.0-only",
    "architecture": {
        "64bit": {
            "url": "https://artifacts.videolan.org/vlc/nightly-win64-ucrt-llvm/20260506-0437/vlc-4.0.0-dev-win64-d0a89f94.7z",
            "hash": "sha512:3b661d93e6de346e6b78b078555f33e257e30b9bef3cf4031481b69487ad7555912504996a1cb95701b61da487118d3f27022ceb4110d7391c534d1d84567c38"
        }
    },
    "extract_dir": "vlc-4.0.0-dev",
    "pre_install": [
        "if (!(Test-Path \"$persist_dir\\portable\") -and (Test-Path \"$env:APPDATA\\vlc\")) {",
        "    info \"Copying old '$env:APPDATA\\vlc' to '$persist_dir\\portable'\"",
        "    ensure \"$dir\\portable\\vlc\" | Out-Null",
        "    Copy-Item \"$env:APPDATA\\vlc\\*\" \"$dir\\portable\" -Recurse -Force",
        "    Move-Item \"$dir\\portable\\vlc-qt-interface.ini\" \"$dir\\portable\\vlc\"",
        "}"
    ],
    "bin": "vlc.exe",
    "shortcuts": [
        [
            "vlc.exe",
            "VLC media player (UCRT LLVM Nightly)"
        ]
    ],
    "persist": "portable",
    "checkver": {
        "script": [
            "$base_url = 'https://artifacts.videolan.org/vlc/nightly-win64-ucrt-llvm/'",
            "$page = Invoke-WebRequest $base_url -UseBasicParsing",
            "$full_version = $page.Links.href.Where({ $_ -match '\\d{8}-\\d{4}/' }, 1)",
            "$dl_page = Invoke-WebRequest ($base_url + $full_version) -UseBasicParsing",
            "\"$full_version$($dl_page.Links.href.Where({ $_ -match '.7z$' }, 1))\""
        ],
        "regex": "(\\d{8})-(?<time>\\d{4})/(?<filename>(?<extract_dir>vlc-[\\d.]+-dev).+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://artifacts.videolan.org/vlc/nightly-win64-ucrt-llvm/$version-$matchTime/$matchFilename",
                "hash": {
                    "url": "$baseurl/SHA512SUM"
                }
            }
        },
        "extract_dir": "$matchExtract_Dir"
    }
}
