{
    "##": "Using homepage for checkver to avoid out-of-order versioning on GitHub (e.g., 4.6.1 -> 4.5.2).",
    "version": "4.6.2",
    "description": "A feature-packed, cross-platform game engine to create 2D and 3D games from a unified interface.",
    "homepage": "https://godotengine.org/",
    "license": "MIT",
    "architecture": {
        "64bit": {
            "url": "https://github.com/godotengine/godot/releases/download/4.6.2-stable/Godot_v4.6.2-stable_win64.exe.zip",
            "hash": "sha512:01c3bc0ede0f8771e810832fb92ce52a3a4352af7b7ac32a81a8edf05bb30760f56a6ab7e17cebc80b81c4f609a95c24c2fdbbe6929ac4e0285cb8f654b56d78"
        },
        "32bit": {
            "url": "https://github.com/godotengine/godot/releases/download/4.6.2-stable/Godot_v4.6.2-stable_win32.exe.zip",
            "hash": "sha512:c2b0be4e6ed571341c108121e2cb4a85bc668b069c92a5587ce6862075646ff27989ca9ea1bd2cd5907e7173472336ce60a825f345b1a433dba64eeab67fc6c1"
        },
        "arm64": {
            "url": "https://github.com/godotengine/godot/releases/download/4.6.2-stable/Godot_v4.6.2-stable_windows_arm64.exe.zip",
            "hash": "sha512:70aae9dd9c91ab66c41f4002cafd6bc7a480bd47b00c3459c14d325dbcbde16c670906d6a953ea3dd2b81f1c23b7c1d4948324f3ffc50c1b70fe92bed4d3c732"
        }
    },
    "pre_install": [
        "Get-Item \"$dir\\Godot_*_console.exe\" | Rename-Item -NewName 'godot.console.exe'",
        "Get-Item \"$dir\\Godot_*.exe\" | Rename-Item -NewName 'godot.exe'",
        "if (!(Test-Path \"$persist_dir\\editor_data\") -and (Test-Path \"$env:AppData\\Godot\")) {",
        "    info '[Portable Mode]: Copying user data from \"$env:AppData\\Godot\"'",
        "    warn '\"godot\" and \"godot-mono\" now use separate persistent settings and project stores'",
        "    ensure \"$persist_dir\\editor_data\" | Out-Null",
        "    Copy-Item -Path \"$env:AppData\\Godot\\*\" -Destination \"$persist_dir\\editor_data\" -Recurse -Force",
        "}",
        "New-Item -Force -Path \"$dir\" -Name '._sc_' -ItemType File | Out-Null"
    ],
    "bin": [
        [
            "godot.console.exe",
            "godot"
        ]
    ],
    "shortcuts": [
        [
            "godot.exe",
            "Godot Engine"
        ]
    ],
    "persist": "editor_data",
    "checkver": {
        "url": "https://godotengine.org",
        "regex": "Download Latest.*?>([\\d.]+)<"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/godotengine/godot/releases/download/$version-stable/Godot_v$version-stable_win64.exe.zip"
            },
            "32bit": {
                "url": "https://github.com/godotengine/godot/releases/download/$version-stable/Godot_v$version-stable_win32.exe.zip"
            },
            "arm64": {
                "url": "https://github.com/godotengine/godot/releases/download/$version-stable/Godot_v$version-stable_windows_arm64.exe.zip"
            }
        },
        "hash": {
            "url": "$baseurl/SHA512-SUMS.txt"
        }
    }
}
