{ "version": "1.2.20", "description": "Incredibly fast JavaScript runtime, bundler, transpiler and package manager - all in one.", "homepage": "https://bun.sh/", "license": "MIT", "suggest": { "vcredist": "extras/vcredist2022" }, "architecture": { "64bit": { "url": [ "https://github.com/oven-sh/bun/releases/download/bun-v1.2.20/bun-windows-x64.zip", "https://github.com/oven-sh/bun/releases/download/bun-v1.2.20/bun-windows-x64-baseline.zip" ], "hash": [ "2fb89f7a0593f43e8bc8c40f5ab887488916c4ce45e75b7dc5fc098d84a8d56c", "be344d075ba25bd3c7f20cc1bec76585b1a852ba10f6721e87f6e9cc27239fd3" ] } }, "pre_install": [ "$avx2 = Start-Job -ScriptBlock {", " Add-Type -MemberDefinition '[DllImport(\"kernel32.dll\")] public static extern bool IsProcessorFeaturePresent(int ProcessorFeature);' -Name Kernel32 -Namespace Win32", " return [Win32.Kernel32]::IsProcessorFeaturePresent(40)", "} | Receive-Job -Wait -AutoRemoveJob", "$target = 'bun-windows-x64'", "if (-not $avx2) {", " $target += '-baseline'", "}", "Move-Item \"$dir\\$target\\bun.exe\" \"$dir\\bun.exe\"", "Remove-Item \"$dir\\bun-windows-*\" -Recurse" ], "bin": [ "bun.exe", [ "bun.exe", "bunx", "x" ] ], "checkver": { "github": "https://github.com/oven-sh/bun", "re": "bun-v([\\d.]+)" }, "autoupdate": { "architecture": { "64bit": { "url": [ "https://github.com/oven-sh/bun/releases/download/bun-v$version/bun-windows-x64.zip", "https://github.com/oven-sh/bun/releases/download/bun-v$version/bun-windows-x64-baseline.zip" ] } }, "hash": { "url": "$baseurl/SHASUMS256.txt" } } }