Update build

This commit is contained in:
Ale32bit 2016-11-04 19:35:51 +01:00 committed by GitHub
parent 21f4e4d367
commit 811a4779ff

View file

@ -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)