{
    "version": "2026-05-06",
    "description": "General-purpose programming language with distinct typing, built for high performance, modern systems, and built-in data-oriented data types.",
    "homepage": "https://odin-lang.org/",
    "license": "BSD-3-Clause",
    "architecture": {
        "64bit": {
            "url": "https://f001.backblazeb2.com/file/odin-binaries/nightly/odin-windows-amd64-nightly%2B2026-05-06.zip",
            "hash": "72d1882ef77e52af9bd5ee5f317436a6deff59feb36102aee3890b4c9bb69ff3"
        }
    },
    "pre_install": [
        "$binDir = Get-ChildItem -Path \"$dir\" -Filter 'odin.exe' -Recurse | Select-Object -ExpandProperty DirectoryName",
        "if ($binDir -ne $dir) {",
        "  Move-Item -Path \"$binDir\\*\" -Destination \"$dir\"",
        "  Remove-Item -Path \"$binDir\"",
        "}"
    ],
    "bin": "odin.exe",
    "persist": "shared",
    "checkver": {
        "url": "https://odinbinaries.thisdrunkdane.io/file/odin-binaries/nightly.json",
        "regex": "nightly%2B([\\d\\-]+).zip",
        "reverse": true
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://f001.backblazeb2.com/file/odin-binaries/nightly/odin-windows-amd64-nightly%2B$version.zip"
            }
        }
    }
}
