{
    "version": "1.16.0",
    "description": "Frontend for emulators, game engines and media players.",
    "homepage": "https://www.retroarch.com/",
    "license": "GPL-3.0-only",
    "architecture": {
        "64bit": {
            "url": "https://buildbot.libretro.com/stable/1.16.0/windows/x86_64/RetroArch.7z",
            "hash": "b92ff4511d6bf6eb9406a1fac953cd9c04f421940ffd2d18b790d5348b5bd95b",
            "extract_dir": "RetroArch-Win64"
        },
        "32bit": {
            "url": "https://buildbot.libretro.com/stable/1.16.0/windows/x86/RetroArch.7z",
            "hash": "d38420cee5f930ee365b85800fb13be05cf27d38edf85be86ec481b22ec7aa4e",
            "extract_dir": "RetroArch-Win32"
        }
    },
    "pre_install": [
        "if (!(Test-Path \"$persist_dir\\retroarch.cfg\")) { Move-Item \"$dir\\retroarch.default.cfg\" \"$dir\\retroarch.cfg\" }",
        "'favorites', 'history' | ForEach-Object {",
        "    if (!(Test-Path \"$persist_dir\\content_$_.lpl\")) { New-Item \"$dir\\content_$_.lpl\" | Out-Null }",
        "}"
    ],
    "bin": "retroarch.exe",
    "shortcuts": [
        [
            "retroarch.exe",
            "RetroArch"
        ]
    ],
    "persist": [
        "assets\\wallpapers",
        "cores",
        "cheats",
        "config",
        "downloads",
        "playlists",
        "records",
        "recordings",
        "saves",
        "screenshots",
        "shaders\\presets",
        "states",
        "system",
        "thumbnails",
        "content_favorites.lpl",
        "content_history.lpl",
        "retroarch.cfg"
    ],
    "checkver": {
        "url": "https://www.retroarch.com/?page=platforms",
        "regex": "The current stable version is:\\s+([\\d.]+)</"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://buildbot.libretro.com/stable/$version/windows/x86_64/RetroArch.7z"
            },
            "32bit": {
                "url": "https://buildbot.libretro.com/stable/$version/windows/x86/RetroArch.7z"
            }
        }
    }
}
