Skip to content

Commit 56f6815

Browse files
committed
chore: build for newer packages
1 parent 9a0d7c4 commit 56f6815

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

scripts/build.mjs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22

33
const archs = process.platform === 'win32' ? ['x64'] : ['x64', 'arm64'];
44

5-
const nodeVersions = ['16.0.0', '17.0.1', '18.0.0'];
6-
const electronVersions = ['19.0.0', '20.0.0', '21.0.0', '22.0.0', '27.0.0', '31.0.0'];
5+
const nodeVersions = ['18.0.0', '19.0.0', '20.0.0', '21.0.0', '22.0.0'];
6+
const electronVersions = ['22.0.0', '27.0.0', '31.0.0', '32.0.0', '33.0.0', '34.0.0'];
77

88
for (const arch of archs) {
9-
await $`npx prebuildify --strip --arch ${arch} ${nodeVersions.map(v => ['-t', `node@${v}`]).flat()} ${electronVersions.map(v => ['-t', `electron@${v}`]).flat()}`;
9+
try {
10+
await $`npx prebuildify --strip --arch ${arch} ${nodeVersions.map(v => ['-t', `node@${v}`]).flat()} ${electronVersions.map(v => ['-t', `electron@${v}`]).flat()}`;
11+
}
12+
catch (error) {
13+
console.error(`Error building for architecture ${arch}:`, error);
14+
}
1015
}

0 commit comments

Comments
 (0)