{
    "version": "2.0",
    "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.0_setup.exe#/dl.7z",
    "hash": "14f6e264fccb05126143ebac7fafd89ae360faf5d8df82250c7804e52c9c2637",
    "pre_install": "Remove-Item \"$dir\\`$*\", \"$dir\\uninst*\" -Recurse",
    "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.exe#/dl.7z",
        "hash": {
            "url": "$baseurl/SHA256SUMS"
        }
    }
}
