Skip to content

Commit 752442d

Browse files
committed
Delete all products before generate them
1 parent 1a69ae6 commit 752442d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

scripts/BigRedButton

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ PRODUCTS=(bin lib libexec share *-nodeos-linux-musl)
1111
PREBUILD=prebuilds/linux-$NODE_ARCH.tar.gz
1212

1313

14+
# Clean products previously to create them
15+
rm -rf ${PRODUCTS[@]} || exit 11
16+
17+
1418
#
1519
# Build cross toolchain for all supported platforms
1620
#
@@ -25,12 +29,6 @@ PLATFORM=pc_qemu_64 npm run build || exit 2
2529

2630
STEP_DIR=$PREBUILD
2731

28-
# Delete symlinks stubs
29-
(
30-
cd bin || exit 10
31-
rm `node -p "Object.keys(require('./package.json').bin).join(' ')"` || exit 11
32-
) || exit $?
33-
3432
mkdir -p prebuilds &&
3533
tar -cf - ${PRODUCTS[@]} | gzip > $PREBUILD || err 12
3634

0 commit comments

Comments
 (0)