{
    "version": "0.11.1",
    "description": "Visualization and exploration software for all kinds of graphs and networks",
    "homepage": "https://github.com/gephi/gephi",
    "license": "GPL-3.0-only",
    "url": "https://github.com/gephi/gephi/releases/download/v0.11.1/gephi-0.11.1-windows-x64.exe",
    "hash": "98d7184242922e044eb12cbf7ff4ed3a9bbc2963aa59968ddea881ead462e15b",
    "innosetup": true,
    "post_install": [
        "# When updating from 0.9.2 to 0.9.3, let Gephi use bundled JRE by using new config",
        "$conf_file = \"$dir\\etc\\gephi.conf\"",
        "$persist_conf = \"$persist_dir\\etc\\gephi.conf\"",
        "$file_contents = Get-Content -path $conf_file -Raw",
        "if (($file_contents -match \"/0.9.2/dev\") -contains $true) {",
        "   Set-Content -path \"$conf_file.oldjre\" -value $file_contents",
        "   Get-Content -path \"$conf_file.original\" -Raw | Set-Content -path $persist_conf",
        "   Remove-Item \"$conf_file.original\"",
        "   Write-Host \"Notes`n-----`nSince Gephi now bundles its own JRE, your config specifying the location of JAVA_HOME has been moved to $dir\\etc\\gephi.conf.oldjre\"",
        "}"
    ],
    "architecture": {
        "64bit": {
            "shortcuts": [
                [
                    "bin\\gephi64.exe",
                    "Gephi"
                ]
            ]
        },
        "32bit": {
            "shortcuts": [
                [
                    "bin\\gephi.exe",
                    "Gephi"
                ]
            ]
        }
    },
    "persist": "etc\\gephi.conf",
    "checkver": "github",
    "autoupdate": {
        "url": "https://github.com/gephi/gephi/releases/download/v$version/gephi-$version-windows-x64.exe"
    }
}
