{
    "version": "2.1",
    "description": "Official Geany plugins, as well as 3rd party ones.",
    "homepage": "https://plugins.geany.org/",
    "license": {
        "identifier": "GPL-2.0-or-later|GPL-3.0-or-later",
        "url": "https://plugins.geany.org/licensing.html"
    },
    "url": "https://plugins.geany.org/geany-plugins/geany-plugins-2.1_setup_unsigned.exe#/dl.7z",
    "hash": "01b556978c37bf0abdf048916e6e5627b44536934d2e9dff4cc30b228e5ef11b",
    "pre_install": "Remove-Item \"$dir\\`$*\", \"$dir\\uninst*\" -Force -Recurse -ErrorAction SilentlyContinue",
    "installer": {
        "script": [
            "if (Test-Path -Path $(appdir geany $global)) {",
            "  Get-ChildItem $dir -Exclude install.json, manifest.json |",
            "  Copy-Item -Destination \"$(appdir geany $global)\\current\" -Recurse -Force",
            "}"
        ]
    },
    "uninstaller": {
        "script": [
            "if (Test-Path -Path $(appdir geany $global)) {",
            "  Get-ChildItem $dir -Exclude install.json, manifest.json -Recurse -File -Name |",
            "  ForEach-Object { Remove-Item \"$(appdir geany $global)\\current\\$_\" -Force }",
            "}"
        ]
    },
    "checkver": {
        "url": "https://plugins.geany.org/downloads.html",
        "regex": "geany-plugins-([\\d.]+)_setup"
    },
    "autoupdate": {
        "url": "https://plugins.geany.org/geany-plugins/geany-plugins-$version_setup_unsigned.exe#/dl.7z",
        "hash": {
            "url": "$baseurl/SHA256SUMS"
        }
    }
}
