Skip to content

Commit 2fcc911

Browse files
authored
bun(-baseline): Merge manifests (#5680)
1 parent 352cee3 commit 2fcc911

File tree

2 files changed

+17
-45
lines changed

2 files changed

+17
-45
lines changed

bucket/bun-baseline.json

-38
This file was deleted.

bucket/bun.json

+17-7
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,28 @@
88
},
99
"architecture": {
1010
"64bit": {
11-
"url": "https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-windows-x64.zip",
12-
"hash": "60e9291d09657ab315bcc6bc07cbf67d2e9b9b18c21bb7cf9ce2d9fa983c9719"
11+
"url": [
12+
"https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-windows-x64.zip",
13+
"https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-windows-x64-baseline.zip"
14+
],
15+
"hash": [
16+
"60e9291d09657ab315bcc6bc07cbf67d2e9b9b18c21bb7cf9ce2d9fa983c9719",
17+
"b4e1e0051a18bc6d104a4990e9abfa9b802d1ecd4d52752c6c9154e17bf987cb"
18+
]
1319
}
1420
},
1521
"pre_install": [
1622
"$avx2 = Start-Job -ScriptBlock {",
1723
" Add-Type -MemberDefinition '[DllImport(\"kernel32.dll\")] public static extern bool IsProcessorFeaturePresent(int ProcessorFeature);' -Name Kernel32 -Namespace Win32",
1824
" return [Win32.Kernel32]::IsProcessorFeaturePresent(40)",
1925
"} | Receive-Job -Wait -AutoRemoveJob",
26+
"$target = 'bun-windows-x64'",
2027
"if (-not $avx2) {",
21-
" Write-Host -Foreground Red \"This CPU does not support the AVX2 instruction set. Please install 'bun-baseline' instead.\"",
22-
" break",
23-
"}"
28+
" $target += '-baseline'",
29+
"}",
30+
"Move-Item \"$dir\\$target\\bun.exe\" \"$dir\\bun.exe\"",
31+
"Remove-Item \"$dir\\bun-windows-*\" -Recurse"
2432
],
25-
"extract_dir": "bun-windows-x64",
2633
"bin": [
2734
"bun.exe",
2835
[
@@ -38,7 +45,10 @@
3845
"autoupdate": {
3946
"architecture": {
4047
"64bit": {
41-
"url": "https://github.com/oven-sh/bun/releases/download/bun-v$version/bun-windows-x64.zip"
48+
"url": [
49+
"https://github.com/oven-sh/bun/releases/download/bun-v$version/bun-windows-x64.zip",
50+
"https://github.com/oven-sh/bun/releases/download/bun-v$version/bun-windows-x64-baseline.zip"
51+
]
4252
}
4353
},
4454
"hash": {

0 commit comments

Comments
 (0)