{
    "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/20260506-0433/vlc-4.0.0-dev-win64-d0a89f94.7z",
            "hash": "sha512:0b8cd0cdb0964e60c5b92dc97bef15842f86d2e811cfa883f4151cc987233274fb1f228f2285872072543bfd4cbf61d8876792a0aa9187e3d58be4ff4007cd85"
        },
        "arm64": {
            "url": "https://artifacts.videolan.org/vlc/nightly-win64-arm-llvm/20260506-0446/vlc-4.0.0-dev-winarm64-d0a89f94.7z",
            "hash": "sha512:61d845d7c77ef0d90fcc7de5bf31bc3f939c6822f2baed7c653f00f72639c45adacd3397ac8e5588ac2543ddd71b47e8968a2b695503adbc8bd7dbb7ef6c7879"
        }
    },
    "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"
        ]
    ],
    "persist": "portable",
    "checkver": {
        "script": [
            "$builds = 'win64', 'win64-arm-llvm'",
            "$scriptver = ''",
            "$urls =  @()",
            "foreach ($build in $builds) {",
            "   $base_url = 'https://artifacts.videolan.org/vlc/nightly-' + $build + '/'",
            "   $page = Invoke-WebRequest $base_url -UseBasicParsing",
            "   $full_version = $page.links | Where-Object href -match '\\d+-\\d+' | Select-Object -first 1 -expand href",
            "   $dl_page = Invoke-WebRequest ($base_url + $full_version) -UseBasicParsing",
            "   $scriptver = $full_version -split '-' | Select-Object -first 1",
            "   $dl = $full_version + ($dl_page.links | Where-Object href -match '\\.7z$' | Select-Object -first 1 -expand href)",
            "   $urls += $dl",
            "}",
            "Write-Output ('version:\"' + $scriptver + '\"') ('urls:\"' + $urls + '\"')"
        ],
        "regex": "version:\"(?<version>\\d+)\"\\surls:\"(?<win64bitver>.+\\/)(?<win64bitfile>(?<folderversion>vlc-[\\d.]+-dev).+)\\s(?<winarm64ver>.+\\/)(?<winarm64file>.+)\""
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://artifacts.videolan.org/vlc/nightly-win64/$matchWin64bitver$matchWin64bitfile",
                "hash": {
                    "url": "https://artifacts.videolan.org/vlc/nightly-win64/$matchWin64bitverSHA512SUM"
                }
            },
            "arm64": {
                "url": "https://artifacts.videolan.org/vlc/nightly-win64-arm-llvm/$matchWinarm64ver$matchWinarm64file",
                "hash": {
                    "url": "https://artifacts.videolan.org/vlc/nightly-win64-arm-llvm/$matchWinarm64verSHA512SUM"
                }
            }
        },
        "extract_dir": "$matchFolderversion"
    }
}
