From 4672aacfa042046f5e976917defbf0f67eddfc6e Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sat, 24 Nov 2018 20:54:00 +0100 Subject: [PATCH] Only compile .lua files --- src/script.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script.lua b/src/script.lua index 783b727..6031a69 100644 --- a/src/script.lua +++ b/src/script.lua @@ -60,7 +60,7 @@ function Script:createLoveFile() if attributes.mode == "directory" then ar:add_dir(file) else - if self.project.compile then + if self.project.compile and file:match(".lua$") then ar:add(file, "string", utils.lua.bytecode(file)) else ar:add(file, "file", file) @@ -70,7 +70,7 @@ function Script:createLoveFile() elseif attributes and stat and attributes.modification > stat.mtime + 5 then if attributes.mode == "file" then utils.io.out("Update "..file.."\n") - if self.project.compile then + if self.project.compile and file:match(".lua$") then ar:replace(assert(ar:name_locate(file)), "string", utils.lua.bytecode(file)) else