{
    "version": "5.15",
    "description": "Personal and small-business financial-accounting software",
    "homepage": "https://www.gnucash.org/",
    "license": "GPL-2.0-or-later",
    "url": "https://github.com/Gnucash/gnucash/releases/download/5.15/gnucash-5.15.setup.exe",
    "hash": "6e10f34f92a1464b45436372a70cdbd16636b14b2842431b72251ded780858bd",
    "innosetup": true,
    "architecture": {
        "64bit": {
            "pre_install": [
                "Get-ChildItem \"$dir\\*,2.*\" -Recurse | Rename-Item -NewName { $_.Name -replace ',2\\.', '.' }",
                "Get-ChildItem \"$dir\\*,1.*\" -Recurse | Remove-Item",
                "if (!(Test-Path -Path \"$persist_dir\\etc\\gnucash\\environment.local\")) { New-Item -Path \"$dir\\etc\\gnucash\" -Name \"environment.local\" -Value \"[Variables]\" | Out-Null }"
            ]
        },
        "32bit": {
            "pre_install": [
                "Get-ChildItem \"$dir\\*,1.*\" -Recurse | Rename-Item -NewName { $_.Name -replace ',1\\.', '.' }",
                "Get-ChildItem \"$dir\\*,2.*\" -Recurse | Remove-Item",
                "if (!(Test-Path -Path \"$persist_dir\\etc\\gnucash\\environment.local\")) { New-Item -Path \"$dir\\etc\\gnucash\" -Name \"environment.local\" -Value \"[Variables]\" | Out-Null }"
            ]
        }
    },
    "bin": "bin\\gnucash-cli.exe",
    "shortcuts": [
        [
            "bin\\gnucash.exe",
            "GnuCash"
        ]
    ],
    "persist": "etc\\gnucash\\environment.local",
    "checkver": {
        "github": "https://api.github.com/repos/Gnucash/gnucash/releases/latest",
        "jsonpath": "$..browser_download_url",
        "regex": "/download/([\\d.]+)/gnucash-([\\w.-]+)\\.setup\\.exe"
    },
    "autoupdate": {
        "url": "https://github.com/Gnucash/gnucash/releases/download/$version/gnucash-$match2.setup.exe",
        "hash": {
            "url": "https://github.com/Gnucash/gnucash/releases/tag/$version",
            "regex": "$sha256.*?$basename"
        }
    }
}
