Skip to content

bun(-baseline): Merge manifests #5680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions bucket/bun-baseline.json

This file was deleted.

24 changes: 17 additions & 7 deletions bucket/bun.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,28 @@
},
"architecture": {
"64bit": {
"url": "https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-windows-x64.zip",
"hash": "60e9291d09657ab315bcc6bc07cbf67d2e9b9b18c21bb7cf9ce2d9fa983c9719"
"url": [
"https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-windows-x64.zip",
"https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-windows-x64-baseline.zip"
],
"hash": [
"60e9291d09657ab315bcc6bc07cbf67d2e9b9b18c21bb7cf9ce2d9fa983c9719",
"b4e1e0051a18bc6d104a4990e9abfa9b802d1ecd4d52752c6c9154e17bf987cb"
]
}
},
"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) {",
" Write-Host -Foreground Red \"This CPU does not support the AVX2 instruction set. Please install 'bun-baseline' instead.\"",
" break",
"}"
" $target += '-baseline'",
"}",
"Move-Item \"$dir\\$target\\bun.exe\" \"$dir\\bun.exe\"",
"Remove-Item \"$dir\\bun-windows-*\" -Recurse"
],
"extract_dir": "bun-windows-x64",
"bin": [
"bun.exe",
[
Expand All @@ -38,7 +45,10 @@
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/oven-sh/bun/releases/download/bun-v$version/bun-windows-x64.zip"
"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": {
Expand Down