{
    "version": "261.24374.66",
    "description": "Cross-Platform IDE for Java by JetBrains (Latest).",
    "homepage": "https://www.jetbrains.com/idea/",
    "license": {
        "identifier": "Proprietary",
        "url": "https://www.jetbrains.com/store/license.html"
    },
    "url": "https://download.jetbrains.com/idea/ideaIU-261.24374.66.win.zip",
    "hash": "ed177fe3fdcdfc07491136957bfcc4bf2604e42ef427bc45924a2e6c5f747c6b",
    "extract_to": "IDE",
    "pre_install": "Get-ChildItem \"$persist_dir\\IDE\\bin\\idea*.exe.vmoptions\" -ErrorAction SilentlyContinue | Copy-Item -Destination \"$dir\\IDE\\bin\"",
    "installer": {
        "script": "& \"$bucketsdir\\versions\\scripts\\jetbrains\\portable.ps1\" $dir $persist_dir"
    },
    "architecture": {
        "64bit": {
            "bin": [
                [
                    "IDE\\bin\\idea64.exe",
                    "idea"
                ]
            ],
            "shortcuts": [
                [
                    "IDE\\bin\\idea64.exe",
                    "JetBrains\\IDEA Ultimate (Latest)"
                ]
            ]
        },
        "32bit": {
            "bin": "IDE\\bin\\idea.exe",
            "shortcuts": [
                [
                    "IDE\\bin\\idea.exe",
                    "JetBrains\\IDEA Ultimate (Latest)"
                ]
            ]
        }
    },
    "persist": [
        "IDE\\bin\\idea.properties",
        "profile"
    ],
    "pre_uninstall": "Get-ChildItem \"$dir\\IDE\\bin\\idea*.exe.vmoptions\" -ErrorAction SilentlyContinue | Copy-Item -Destination \"$persist_dir\\IDE\\bin\"",
    "checkver": {
        "script": [
            "$latestRelease = Invoke-RestMethod -Uri \"https://data.services.jetbrains.com/products/releases?code=IIU&latest=true&platform=zip&type=release\"",
            "$latestRc = Invoke-RestMethod -Uri \"https://data.services.jetbrains.com/products/releases?code=IIU&latest=true&platform=zip&type=rc\"",
            "$latestEap = Invoke-RestMethod -Uri \"https://data.services.jetbrains.com/products/releases?code=IIU&latest=true&platform=zip&type=eap\"",
            "if (([System.Version]$latestRelease.IIU.build -gt [System.Version]$latestRc.IIU.build) -and ([System.Version]$latestRelease.IIU.build -gt [System.Version]$latestEap.IIU.build)) {",
            "$latestBuildNumber = $latestRelease.IIU.build",
            "$latestRelease = $latestRelease.IIU.version",
            "}",
            "elseif (([System.Version]$latestRc.IIU.build -gt [System.Version]$latestRelease.IIU.build) -and ([System.Version]$latestRc.IIU.build -gt [System.Version]$latestEap.IIU.build)) {",
            "$latestRelease = $latestRc.IIU.build",
            "$latestBuildNumber = $latestRelease",
            "}",
            "else {",
            "$latestRelease = $latestEap.IIU.build",
            "$latestBuildNumber = $latestRelease",
            "}",
            "Write-Output \"$latestBuildNumber $latestRelease\""
        ],
        "regex": "(?<version>[\\d.]+) (?<release>[\\d.]+)"
    },
    "autoupdate": {
        "url": "https://download.jetbrains.com/idea/ideaIU-$matchRelease.win.zip",
        "hash": {
            "url": "$url.sha256"
        }
    }
}
