{
    "version": "2026-03-13",
    "description": "Natively supported free encoder binary for use with the Converter foobar2000 component",
    "homepage": "https://www.foobar2000.org/encoderpack",
    "license": {
        "identifier": "Freeware",
        "url": "https://www.foobar2000.org/license"
    },
    "suggest": {
        "Foobar2000": "extras/foobar2000"
    },
    "notes": "The binaries are conveniently installed into a subfolder of the foobar2000 installation folder. Current versions of foobar2000 will automatically recognize these encoders and no longer ask you for encoder binary location.",
    "url": "https://www.foobar2000.org/files/Free_Encoder_Pack-2026-03-13.exe#/dl.7z",
    "hash": "2510d5706889c19ebf6e26d400b18c3b0962b1289b55bfbbea52fcefb6768627",
    "installer": {
        "script": [
            "Remove-Item \"$dir\\`$PLUGINSDIR\" -Force -Recurse",
            "$FoobarDir = $(appdir foobar2000 $global)",
            "if (Test-Path \"$FoobarDir\") {",
            "    Get-ChildItem -Path \"$FoobarDir\\current\" -Filter \"encoders\" | Remove-Item -Force -Recurse",
            "    New-Item \"$FoobarDir\\current\\encoders\" -ItemType Junction -Target \"$dir\" | Out-Null",
            "}"
        ]
    },
    "uninstaller": {
        "script": [
            "$FoobarDir = $(appdir foobar2000 $global)",
            "if (Test-Path \"$FoobarDir\") {",
            "    Get-ChildItem -Path \"$FoobarDir\\current\" -Filter \"encoders\" | Remove-Item -Force -Recurse",
            "}"
        ]
    },
    "checkver": "Free_Encoder_Pack-([\\d-]+)\\.exe",
    "autoupdate": {
        "url": "https://www.foobar2000.org/files/Free_Encoder_Pack-$version.exe#/dl.7z"
    }
}
