{
    "version": "5.40.2716",
    "description": "Audio player",
    "homepage": "https://www.aimp.ru",
    "license": {
        "identifier": "Freeware",
        "url": "https://www.aimp.ru/?do=eula&os=windows"
    },
    "architecture": {
        "64bit": {
            "url": "https://www.aimp.ru/?do=download.file&id=31#/dl.zip",
            "hash": "3062f850209b0618cb9014c838b5b73b0b3e3fc08f6f529ca2dda8f5e4eaf038"
        },
        "32bit": {
            "url": "https://www.aimp.ru/?do=download.file&id=8#/dl.zip",
            "hash": "7bdce46fda3c5ca8b3c50564ae847f7812c9d450ea78fdbd6dc652d2e0ee3848"
        }
    },
    "extract_dir": "AIMP",
    "post_install": [
        "'Icons', 'Skins', 'Plugins' | ForEach-Object {",
        "    $source_dir = Join-Path $dir \"$_.original\"",
        "    $destination_dir = Join-Path $dir $_",
        "    if (Test-Path \"$source_dir\") {",
        "        Copy-Item -Path \"$source_dir\\*\" -Destination $destination_dir -Force -Recurse",
        "        Remove-Item -Path $source_dir -Recurse -Force -ErrorAction SilentlyContinue",
        "    }",
        "}"
    ],
    "bin": [
        "AIMP.exe",
        "AIMPac.exe",
        "AIMPate.exe"
    ],
    "shortcuts": [
        [
            "AIMP.exe",
            "AIMP"
        ],
        [
            "AIMPac.exe",
            "AIMP Audio Converter"
        ],
        [
            "AIMPate.exe",
            "AIMP Advanced Tag Editor"
        ]
    ],
    "persist": [
        "Icons",
        "Skins",
        "Plugins",
        "Profile"
    ],
    "checkver": {
        "url": "https://www.aimp.ru/?do=download&os=windows",
        "regex": ">AIMP v([\\d.]+)<"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://www.aimp.ru/?do=download.file&id=31#/dl.zip",
                "hash": {
                    "url": "https://www.aimp.ru/?do=download&os=windows",
                    "regex": "(?sm)64-bit \\(No Installer\\).*?SHA256: $sha256"
                }
            },
            "32bit": {
                "url": "https://www.aimp.ru/?do=download.file&id=8#/dl.zip",
                "hash": {
                    "url": "https://www.aimp.ru/?do=download&os=windows",
                    "regex": "(?sm)32-bit \\(No Installer\\).*?SHA256: $sha256"
                }
            }
        }
    }
}
