Skip to content

Commit 82c8836

Browse files
committed
Don't add stubs symlinks to prebuild images
1 parent b977aae commit 82c8836

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

scripts/BigRedButton

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,23 @@ PLATFORM=pc_qemu_64 npm run build || exit 2
2525

2626
STEP_DIR=$PREBUILD
2727

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+
2834
mkdir -p prebuilds &&
29-
tar -cf - ${PRODUCTS[@]} | gzip > $PREBUILD || err 3
35+
tar -cf - ${PRODUCTS[@]} | gzip > $PREBUILD || err 12
36+
37+
# Re-create symlinks stubs
38+
scripts/postinstall || exit 13
3039

3140

3241
#
3342
# Upload release to GitHub
3443
#
3544

3645
if [ "$GITHUB_TOKEN" ]; then
37-
prebuild --upload-all $GITHUB_TOKEN || exit 4
46+
prebuild --upload-all $GITHUB_TOKEN || exit 20
3847
fi

0 commit comments

Comments
 (0)