Skip to content

Commit 1916446

Browse files
committed
fix: add script for updating all asset lists
1 parent 67fad8b commit 1916446

7 files changed

+68
-4
lines changed

dist/legacy/github_brechtsanders_winlibs_mingw.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/legacy/github_llvm_llvm-project.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/modern/github_brechtsanders_winlibs_mingw.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/modern/github_llvm_llvm-project.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/asset-list.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { basename, dirname } from "path"
2+
import { execa } from "execa"
3+
import glob from "fast-glob"
4+
5+
async function main() {
6+
// create a github token from gh
7+
const token = await execa("gh", ["auth", "token"])
8+
process.env.GITHUB_TOKEN = token.stdout
9+
10+
const files = await glob("src/*/assets-list.ts", {
11+
onlyFiles: true,
12+
absolute: true,
13+
ignore: ["node_modules"],
14+
})
15+
16+
await Promise.all(files.map(async (file) => {
17+
console.log(`Updating ${basename(dirname(file))}`)
18+
19+
const jsFile = file.replace(".ts", ".js")
20+
await import(jsFile)
21+
}))
22+
}
23+
24+
main().catch((err) => {
25+
console.error(err)
26+
process.exit(1)
27+
})

src/gcc/github_brechtsanders_winlibs_mingw.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"winlibs-x86_64-win32-seh-gcc-14.2.0-mingw-w64msvcrt-12.0.0-r1.7z",
44
"winlibs-x86_64-win32-seh-gcc-14.2.0-llvm-19.1.3-mingw-w64msvcrt-12.0.0-r1.7z"
55
],
6+
"14.2.0posix-19.1.7-12.0.0-msvcrt-r3": [
7+
"winlibs-x86_64-posix-seh-gcc-14.2.0-mingw-w64msvcrt-12.0.0-r3.7z",
8+
"winlibs-x86_64-posix-seh-gcc-14.2.0-llvm-19.1.7-mingw-w64msvcrt-12.0.0-r3.7z",
9+
"winlibs-i686-posix-dwarf-gcc-14.2.0-mingw-w64msvcrt-12.0.0-r3.7z",
10+
"winlibs-i686-posix-dwarf-gcc-14.2.0-llvm-19.1.7-mingw-w64msvcrt-12.0.0-r3.7z"
11+
],
612
"14.2.0posix-19.1.1-12.0.0-ucrt-r2": [
713
"winlibs-x86_64-posix-seh-gcc-14.2.0-mingw-w64ucrt-12.0.0-r2.7z",
814
"winlibs-x86_64-posix-seh-gcc-14.2.0-llvm-19.1.1-mingw-w64ucrt-12.0.0-r2.7z",
@@ -27,6 +33,12 @@
2733
"winlibs-i686-posix-dwarf-gcc-14.2.0-mingw-w64msvcrt-12.0.0-r1.7z",
2834
"winlibs-i686-posix-dwarf-gcc-14.2.0-llvm-18.1.8-mingw-w64msvcrt-12.0.0-r1.7z"
2935
],
36+
"14.2.0posix-12.0.0-ucrt-r3": [
37+
"winlibs-x86_64-posix-seh-gcc-14.2.0-mingw-w64ucrt-12.0.0-r3.7z",
38+
"winlibs-x86_64-posix-seh-gcc-14.2.0-llvm-19.1.7-mingw-w64ucrt-12.0.0-r3.7z",
39+
"winlibs-i686-posix-dwarf-gcc-14.2.0-mingw-w64ucrt-12.0.0-r3.7z",
40+
"winlibs-i686-posix-dwarf-gcc-14.2.0-llvm-19.1.7-mingw-w64ucrt-12.0.0-r3.7z"
41+
],
3042
"14.2.0mcf-12.0.0-ucrt-r1": [
3143
"winlibs-x86_64-mcf-seh-gcc-14.2.0-mingw-w64ucrt-12.0.0-r1.7z",
3244
"winlibs-i686-mcf-dwarf-gcc-14.2.0-mingw-w64ucrt-12.0.0-r1.7z"

src/llvm/github_llvm_llvm-project.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
{
2+
"llvmorg-20.1.0": [
3+
"clang+llvm-20.1.0-x86_64-pc-windows-msvc.tar.xz",
4+
"clang+llvm-20.1.0-armv7a-linux-gnueabihf.tar.gz",
5+
"clang+llvm-20.1.0-aarch64-pc-windows-msvc.tar.xz",
6+
"LLVM-20.1.0-woa64.exe",
7+
"LLVM-20.1.0-win64.exe",
8+
"LLVM-20.1.0-win32.exe",
9+
"LLVM-20.1.0-macOS-ARM64.tar.xz",
10+
"LLVM-20.1.0-Linux-X64.tar.xz",
11+
"LLVM-20.1.0-Linux-ARM64.tar.xz"
12+
],
13+
"llvmorg-19.1.7": [
14+
"clang+llvm-19.1.7-x86_64-pc-windows-msvc.tar.xz",
15+
"clang+llvm-19.1.7-armv7a-linux-gnueabihf.tar.gz",
16+
"clang+llvm-19.1.7-aarch64-linux-gnu.tar.xz",
17+
"LLVM-19.1.7-woa64.exe",
18+
"LLVM-19.1.7-win64.exe",
19+
"LLVM-19.1.7-win32.exe",
20+
"LLVM-19.1.7-macOS-X64.tar.xz",
21+
"LLVM-19.1.7-macOS-ARM64.tar.xz",
22+
"LLVM-19.1.7-Linux-X64.tar.xz"
23+
],
224
"llvmorg-19.1.6": [
325
"clang+llvm-19.1.6-x86_64-pc-windows-msvc.tar.xz",
26+
"clang+llvm-19.1.6-armv7a-linux-gnueabihf.tar.gz",
27+
"clang+llvm-19.1.6-aarch64-linux-gnu.tar.xz",
28+
"LLVM-19.1.6-woa64.exe",
429
"LLVM-19.1.6-win64.exe",
530
"LLVM-19.1.6-win32.exe",
631
"LLVM-19.1.6-macOS-X64.tar.xz",

0 commit comments

Comments
 (0)