{
    "version": "1313-4.5.2",
    "homepage": "https://processing.org/",
    "description": "A flexible software sketchbook and a language for learning how to code.",
    "license": "GPL-2.0",
    "architecture": {
        "64bit": {
            "url": "https://github.com/processing/processing4/releases/download/processing-1313-4.5.2/processing-4.5.2-windows-x64-portable.zip",
            "hash": "6175179da4132af9c46597b8482b38e97ec9d09f0c819a32d8c7397b6d008186"
        }
    },
    "extract_dir": "Processing",
    "bin": "Processing.exe",
    "shortcuts": [
        [
            "Processing.exe",
            "Processing"
        ]
    ],
    "pre_uninstall": [
        "if ($cmd -eq 'uninstall') {",
        "   Remove-Item 'HKCU:\\SOFTWARE\\Classes\\pde', 'HKCU:\\SOFTWARE\\Classes\\Processing.Document' -ErrorAction 'SilentlyContinue' -Recurse -Force",
        "   foreach ($item in 'Contribution', 'Sketch') { Remove-Item 'HKCU:\\SOFTWARE\\Classes\\Processing.$item.Document' -ErrorAction 'SilentlyContinue' -Recurse -Force }",
        "}"
    ],
    "checkver": {
        "github": "https://github.com/processing/processing4",
        "regex": "tag/processing-([\\d-.]+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/processing/processing4/releases/download/processing-$version/processing-$preReleaseVersion-windows-x64-portable.zip"
            }
        }
    }
}
