mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 02:52:20 +00:00
Only compile .lua files
This commit is contained in:
committed by
Antonin Décimo
parent
714728754d
commit
4672aacfa0
@@ -60,7 +60,7 @@ function Script:createLoveFile()
|
|||||||
if attributes.mode == "directory" then
|
if attributes.mode == "directory" then
|
||||||
ar:add_dir(file)
|
ar:add_dir(file)
|
||||||
else
|
else
|
||||||
if self.project.compile then
|
if self.project.compile and file:match(".lua$") then
|
||||||
ar:add(file, "string", utils.lua.bytecode(file))
|
ar:add(file, "string", utils.lua.bytecode(file))
|
||||||
else
|
else
|
||||||
ar:add(file, "file", file)
|
ar:add(file, "file", file)
|
||||||
@@ -70,7 +70,7 @@ function Script:createLoveFile()
|
|||||||
elseif attributes and stat and attributes.modification > stat.mtime + 5 then
|
elseif attributes and stat and attributes.modification > stat.mtime + 5 then
|
||||||
if attributes.mode == "file" then
|
if attributes.mode == "file" then
|
||||||
utils.io.out("Update "..file.."\n")
|
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",
|
ar:replace(assert(ar:name_locate(file)), "string",
|
||||||
utils.lua.bytecode(file))
|
utils.lua.bytecode(file))
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user