{
    "version": "0.76.3",
    "description": "Zim is a graphical text editor used to maintain a collection of wiki pages.",
    "homepage": "https://zim-wiki.org/",
    "license": "GPL-2.0-only",
    "architecture": {
        "64bit": {
            "url": "https://zim-wiki.org/downloads/zim-desktop-wiki-0.76.3-setup-w64_x86.exe#/dl.7z",
            "hash": "b1b7733bf3809d0aec0078de243eacdfcd8d036cfe3a5a694ae58c56b79f900b"
        }
    },
    "pre_install": "Remove-Item \"$dir\\`$*\", \"$dir\\uninstall.exe\" -Force -Recurse",
    "post_install": [
        "$content = Get-Content \"$dir\\environ.ini\"",
        "$content = $content.Replace('HOME=../', \"HOME=$env:USERPROFILE\")",
        "Set-Content \"$dir\\environ.ini\" $content -Encoding Ascii"
    ],
    "shortcuts": [
        [
            "zim.exe",
            "Zim"
        ]
    ],
    "persist": [
        "cache\\zim",
        "config",
        "data"
    ],
    "checkver": {
        "url": "https://zim-wiki.org/downloads.html",
        "regex": "Latest release: ([\\d.]+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://zim-wiki.org/downloads/zim-desktop-wiki-$version-setup-w64_x86.exe#/dl.7z"
            }
        }
    }
}
