2024-11-02 08:30:00 +00:00

59 lines
2.0 KiB
JSON

{
"version": "1.1.34",
"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.1.34/bun-windows-x64.zip",
"https://github.com/oven-sh/bun/releases/download/bun-v1.1.34/bun-windows-x64-baseline.zip"
],
"hash": [
"22d740bd1a04779399a3d3081052a3f7879ea6c8d5f3e55972ce2c0e73802b37",
"eca713a68baf25ee2ab557182ec0a579a5c42e26a525dc3f957ffd72d1e62ab0"
]
}
},
"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"
}
}
}