From 736bd8d38f83da55af0e7445c51255e7e4a55648 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Sat, 28 Feb 2026 19:00:32 +0100 Subject: [PATCH] export fix --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8d02542..4c6f210 100644 --- a/Makefile +++ b/Makefile @@ -43,8 +43,10 @@ web: love cp -r $(DIST_DIR)/lovejs-src/*/. $(WEB_DIR)/ rm -rf $(DIST_DIR)/lovejs-src cp $(OUTPUT_LOVE) $(WEB_DIR)/$(LOVE_NAME) - @echo "==> Generating index.html" - printf '' > $(WEB_DIR)/index.html + @echo "==> Patching player.js" + sed -i.bak "s|uri = 'nogame\.love'|uri = '$(LOVE_NAME)'|g" $(WEB_DIR)/player.js && rm $(WEB_DIR)/player.js.bak + @echo "==> Patching index.html" + sed -i.bak 's|||g' $(WEB_DIR)/index.html && rm $(WEB_DIR)/index.html.bak @echo "==> Web build ready in $(WEB_DIR)" export: love web