{
    "version": "23.12.0.0",
    "description": "A video player forked from MPV. It can also play Youtube videos, search and download subtitles, and includes other features like a thumbnail generator and audio and video filters.",
    "homepage": "https://www.smplayer.info/",
    "license": "GPL-2.0-or-later",
    "architecture": {
        "64bit": {
            "url": "https://github.com/smplayer-dev/smplayer/releases/download/v23.12.0/smplayer-portable-23.12.0.0-x64.7z",
            "hash": "6c09102d3dd25170b52371e3cc3d8201129b65f8a475b3c4a5c4b025151f425c"
        },
        "32bit": {
            "url": "https://github.com/smplayer-dev/smplayer/releases/download/v23.12.0/smplayer-portable-23.12.0.0-win32-qt5.6.7z",
            "hash": "24a6a2a60864b2008c902492492a145b475de1d8d5b6d28eb58c35d1454c4e70"
        }
    },
    "extract_dir": "smplayer-portable",
    "pre_install": [
        "'hdpi.ini', 'playlist.ini', 'favorites.m3u8', 'radio.m3u8', 'tv.m3u8' | ForEach-Object {",
        "    if (!(Test-Path \"$persist_dir\\$_\")) { New-Item \"$dir\\$_\" | Out-Null }",
        "}",
        "if (Test-Path \"$persist_dir\\smplayer.ini\") { Copy-Item \"$persist_dir\\smplayer.ini\" \"$dir\\smplayer.ini\" }"
    ],
    "shortcuts": [
        [
            "smplayer.exe",
            "SMPlayer"
        ]
    ],
    "persist": [
        "screenshots",
        "hdpi.ini",
        "playlist.ini",
        "favorites.m3u8",
        "radio.m3u8",
        "tv.m3u8"
    ],
    "pre_uninstall": [
        "# The following must be done as SMPlayer deletes the original file which was linked to the persist folder when it saves settings, rather than editing the file.",
        "Copy-Item \"$dir\\smplayer.ini\" \"$persist_dir\\smplayer.ini\""
    ],
    "checkver": {
        "url": "https://www.smplayer.info/en/download-smplayer-portable",
        "regex": "smplayer-portable-([\\d.]+)-win32-qt(?<qtversion>[\\d.]+)\\.7z"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/smplayer-dev/smplayer/releases/download/v$matchHead/smplayer-portable-$version-x64.7z"
            },
            "32bit": {
                "url": "https://github.com/smplayer-dev/smplayer/releases/download/v$matchHead/smplayer-portable-$version-win32-qt$matchQtversion.7z"
            }
        }
    }
}
