Skip to content

Commit

Permalink
feat(#175): catch bad node
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Sep 3, 2024
1 parent 73bd0a3 commit 282fc68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ $(SERVER_PATH_LINUX): $(BUNDLE_PATH) sea-config.json
rm -rf $(SERVER_PATH_LINUX)
node --experimental-sea-config sea-config.json
cp $(shell command -v node) $(SERVER_PATH_LINUX)
objdump -p $(SERVER_PATH_LINUX) | grep 'NEEDED' | grep -q 'libdl.so.2' || \
{ echo "Your $(shell command -v node) does not support Node SEA. Please install Node through nvm and try again."; exit 1; }
chmod +w $(SERVER_PATH_LINUX)
node_modules/.bin/postject $(SERVER_PATH_LINUX) NODE_SEA_BLOB $(BUILD_DIR)/sea-prep.blob \
--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
Expand Down

0 comments on commit 282fc68

Please sign in to comment.