{
    "version": "1.3",
    "description": "Allows you to change the icon color of a chosen folder to any color you like",
    "homepage": "https://www.sordum.org/folder-painter",
    "license": {
        "identifier": "Freeware",
        "url": "https://www.sordum.org/eula/"
    },
    "architecture": {
        "32bit": {
            "shortcuts": [
                [
                    "FolderPainter.exe",
                    "FolderPainter"
                ]
            ]
        },
        "64bit": {
            "shortcuts": [
                [
                    "FolderPainter_x64.exe",
                    "FolderPainter"
                ]
            ]
        }
    },
    "url": "https://www.sordum.org/files/download/folder-painter/FolderPainter.zip",
    "hash": "a09201786ee6e4d81f0663ca82543c015f4bf479616f9c795d8d7f1283d7bd6d",
    "extract_dir": "FolderPainter",
    "pre_uninstall": [
        "# Unregister right-click context menu if user uninstalls the app",
        "$reg_paths = @(",
        "  'HKLM:\\SOFTWARE\\Classes\\Directory\\shell\\zFolderPainter_01',",
        "  'HKLM:\\SOFTWARE\\Classes\\Directory\\shell\\zFolderPainter_02'",
        ")",
        "if ($cmd -eq 'uninstall') {",
        "  $reg_paths | ForEach-Object {",
        "  if (Test-Path $_) {",
        "      if (!(is_admin)) { error \"$app requires admin rights to unregister right-click context menu\"; break }",
        "      Remove-Item $_ -Force -Recurse",
        "    }",
        "  }",
        "}"
    ],
    "checkver": {
        "regex": "Folder Painter v([\\d.]+)"
    },
    "autoupdate": {
        "url": "https://www.sordum.org/files/download/folder-painter/FolderPainter.zip"
    }
}
