Skip to content

Commit efcf6ae

Browse files
committed
Create prebuild based on system Node.js architecture
1 parent c44c419 commit efcf6ae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/BigRedButton

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/usr/bin/env sh
1+
#!/usr/bin/env bash
2+
3+
. scripts/adjustEnvVars.sh
24

35
#
46
# Build cross toolchain for all supported platforms
@@ -11,8 +13,8 @@ PLATFORM=pc_qemu_64 npm run build || exit 2
1113
# Pack toolchain in a node-gyp compatible way
1214
#
1315

14-
mkdir -p prebuilds &&
15-
tar -cf - out | gzip > prebuilds/linux-x64.tar.gz || exit 3
16+
mkdir -p prebuilds &&
17+
tar -cf - out | gzip > prebuilds/linux-$NODE_ARCH.tar.gz || exit 3
1618

1719
#
1820
# Upload release to GitHub

0 commit comments

Comments
 (0)