Update build
This commit is contained in:
parent
21f4e4d367
commit
811a4779ff
1 changed files with 7 additions and 7 deletions
|
@ -19,9 +19,9 @@ end
|
||||||
|
|
||||||
|
|
||||||
local f = fs.open(dir.."/config","r")
|
local f = fs.open(dir.."/config","r")
|
||||||
local config = textutils.unserialize(f.readAll())
|
local _config = textutils.unserialize(f.readAll())
|
||||||
f.close()
|
f.close()
|
||||||
if not config then
|
if not _config then
|
||||||
print("Config file is corrupted")
|
print("Config file is corrupted")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -59,10 +59,10 @@ end
|
||||||
local result = {}
|
local result = {}
|
||||||
|
|
||||||
|
|
||||||
print("Name:",config.name)
|
print("Name:",_config.name)
|
||||||
print("Author:",config.author)
|
print("Author:",_config.author)
|
||||||
print("Version:",config.version)
|
print("Version:",_config.version)
|
||||||
print("ID:",config.id)
|
print("ID:",_config.id)
|
||||||
|
|
||||||
if string.getExtension(output) ~= "spk" then
|
if string.getExtension(output) ~= "spk" then
|
||||||
printError("TIP: Use .spk extension")
|
printError("TIP: Use .spk extension")
|
||||||
|
@ -72,7 +72,7 @@ print("Building...")
|
||||||
|
|
||||||
local filesystem = explore(args[1].."/main")
|
local filesystem = explore(args[1].."/main")
|
||||||
result["files"] = textutils.serialize(filesystem)
|
result["files"] = textutils.serialize(filesystem)
|
||||||
result["config"] = textutils.serialize(config)
|
result["config"] = textutils.serialize(_config)
|
||||||
|
|
||||||
|
|
||||||
local newResult = textutils.serialize(result)
|
local newResult = textutils.serialize(result)
|
||||||
|
|
Loading…
Reference in a new issue