Skip to content

Commit 77ac9da

Browse files
committed
Try looking for love.js in node_modules
Setting PATH is often times a pain. Now the makefile tries the node_modules directory in the same folder, first.
1 parent 1d71712 commit 77ac9da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ build: clean
3737
web: build
3838
@command -v love.js \
3939
&& love.js -c -t ${project_name} build/${project_name}.love build/__site/ \
40-
|| ( echo "love.js not found in PATH"; exit 1 )
40+
|| node_modules/love.js/index.js -c -t ${project_name} build/${project_name}.love build/__site/ \
41+
|| ( echo "love.js executable not found"; exit 1 )
4142
cp -f res/index.html build/__site/index.html
4243
cp -f -r res/theme/ build/__site/
4344
cd build/__site/ && node ../../Love.js-Api-Player/globalizeFS.js

0 commit comments

Comments
 (0)