-
-
Notifications
You must be signed in to change notification settings - Fork 974
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bun(-baseline): Add version 1.1.0 (#5672)
* bun(-baseline): Add version 1.1.0 * bun: Add pre_install check for CPU * don't leak DllImport methods --------- Co-authored-by: Chawye Hsu <[email protected]>
- Loading branch information
Showing
2 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"version": "1.1.0", | ||
"description": "Incredibly fast JavaScript runtime, bundler, transpiler and package manager - all in one. (Baseline build)", | ||
"homepage": "https://bun.sh/", | ||
"license": "MIT", | ||
"suggest": { | ||
"vcredist": "extras/vcredist2022" | ||
}, | ||
"architecture": { | ||
"64bit": { | ||
"url": "https://github.com/oven-sh/bun/releases/download/bun-v1.1.0/bun-windows-x64-baseline.zip", | ||
"hash": "b4e1e0051a18bc6d104a4990e9abfa9b802d1ecd4d52752c6c9154e17bf987cb" | ||
} | ||
}, | ||
"extract_dir": "bun-windows-x64-baseline", | ||
"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-baseline.zip" | ||
} | ||
}, | ||
"hash": { | ||
"url": "$baseurl/SHASUMS256.txt" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"version": "1.1.0", | ||
"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.0/bun-windows-x64.zip", | ||
"hash": "60e9291d09657ab315bcc6bc07cbf67d2e9b9b18c21bb7cf9ce2d9fa983c9719" | ||
} | ||
}, | ||
"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", | ||
"if (-not $avx2) {", | ||
" Write-Host -Foreground Red \"This CPU does not support the AVX2 instruction set. Please install 'bun-baseline' instead.\"", | ||
" break", | ||
"}" | ||
], | ||
"extract_dir": "bun-windows-x64", | ||
"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" | ||
} | ||
}, | ||
"hash": { | ||
"url": "$baseurl/SHASUMS256.txt" | ||
} | ||
} | ||
} |