-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (45 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"version": "1.1.0-canary",
"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/canary/bun-windows-x64.zip"
// , "hash": "79f298b527ba1dd202ea97c39fd5700b87f250b34a569582577c537c77514079"
}
},
"extract_dir": "bun-windows-x64",
"bin": [
"bun.exe",
[
"bun.exe",
"bunx",
"x"
]
],
"checkver": {
"script": [
"$dl_url = 'https://github.com/oven-sh/bun/releases/download/canary/bun-windows-x64.zip'",
"$dl = cache_path 'bun-canary' 'unknown' $dl_url",
"$dl_dir = strip_ext $dl",
"Invoke-WebRequest $dl_url -OutFile $dl",
"Expand-Archive $dl $dl_dir",
"$ver = & \"$dl_dir\\bun-windows-x64\\bun.exe\" --revision",
"Move-Item -Force $dl (cache_path 'bun-canary' $ver $dl_url)",
"Remove-Item $dl_dir -Recurse",
"$ver"
],
"regex": "(\\S+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/oven-sh/bun/releases/download/canary/bun-windows-x64.zip"
}
}
}
}