Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 9d49e73

Browse files
Fix windows builds
Broken due to NodeJS breaking change for security
1 parent 02d895e commit 9d49e73

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build-scripts/graal.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ const NATIVE_IMAGE_BUILD_ARGS = [
5757
path.resolve(process.cwd(), 'compiler.jar')
5858
];
5959

60-
runCommand(`native-image${process.platform === 'win32' ? '.cmd' : ''}`, NATIVE_IMAGE_BUILD_ARGS)
60+
const spawnOpts = {};
61+
if (process.platform === 'win32') {
62+
spawnOpts.shell = true;
63+
}
64+
65+
runCommand(`native-image${process.platform === 'win32' ? '.cmd' : ''}`, NATIVE_IMAGE_BUILD_ARGS, spawnOpts)
6166
.catch(e => {
6267
console.error(e);
6368
process.exit(1);

0 commit comments

Comments
 (0)