{
    "homepage": "https://github.com/zhongyang219/MusicPlayer2",
    "description": "Audio player which supports music collection playback, lyrics display, format conversion and many other functions.",
    "license": "GPL-3.0-only",
    "version": "2.76.1",
    "architecture": {
        "32bit": {
            "url": "https://github.com/zhongyang219/MusicPlayer2/releases/download/V2.76.1/MusicPlayer2_V2.76.1_x86.zip",
            "hash": "51ec0ec4a87b0c018d5144cd8e8a3e280a3e391119d1b84b57842f11b973e2b2",
            "extract_dir": "MusicPlayer2"
        },
        "64bit": {
            "url": "https://github.com/zhongyang219/MusicPlayer2/releases/download/V2.76.1/MusicPlayer2_V2.76.1_x64.zip",
            "hash": "f8e352570e8c5c553efbaff6bbb0ea007a2a9f0bd3f457024fabdb5cf99ce033",
            "extract_dir": "MusicPlayer2_x64"
        }
    },
    "shortcuts": [
        [
            "MusicPlayer2.exe",
            "MusicPlayer2"
        ]
    ],
    "pre_install": [
        "$GLOBAL_CFG = 'global_cfg.ini'",
        "if (!(Test-Path \"$persist_dir\\$GLOBAL_CFG\")) {",
        "    Set-Content \"$dir\\$GLOBAL_CFG\" @('[config]', 'portable_mode = true') -Encoding Ascii",
        "}",
        "'recent_path.dat', 'song_data.dat', 'config.ini' | ForEach-Object { if (!(Test-Path \"$persist_dir\\$_\")) { New-Item \"$dir\\$_\" -ItemType File -Force | Out-Null } }"
    ],
    "persist": [
        "playlist",
        "recent_path.dat",
        "song_data.dat",
        "config.ini",
        "global_cfg.ini"
    ],
    "checkver": "github",
    "autoupdate": {
        "architecture": {
            "32bit": {
                "url": "https://github.com/zhongyang219/MusicPlayer2/releases/download/V$version/MusicPlayer2_V$version_x86.zip"
            },
            "64bit": {
                "url": "https://github.com/zhongyang219/MusicPlayer2/releases/download/V$version/MusicPlayer2_V$version_x64.zip"
            }
        }
    }
}
