2025-10-22 08:30:25 +00:00

59 lines
2.0 KiB
JSON

{
"version": "1.3.1",
"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.3.1/bun-windows-x64.zip",
"https://github.com/oven-sh/bun/releases/download/bun-v1.3.1/bun-windows-x64-baseline.zip"
],
"hash": [
"f6619e31752e1259c1d2090ec3ea16366fa5a8eb49b78ed187cd05930c38be55",
"eda1a3a55a17e40eeda4fd08d82b6a0db0bddc660cd35bc7d67525cd38c35063"
]
}
},
"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"
}
}
}