From f9a7607d34043f2feeeb4278633b2814847cc8a8 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Tue, 15 Nov 2016 23:19:19 +0100 Subject: [PATCH] Update build.lua --- src/sdk/build.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/sdk/build.lua b/src/sdk/build.lua index fb9e3b6..71ec0e2 100644 --- a/src/sdk/build.lua +++ b/src/sdk/build.lua @@ -11,7 +11,7 @@ end local dir = args[1] local output = args[2] local final = {} -local builderVersion = 1.1 +local builderVersion = 1.2 if not fs.exists(dir) or not fs.isDir(dir) then print("Input must be a folder") @@ -59,12 +59,21 @@ end local result = {} +_config.type = (_config.type or "app") +local hidden = false + +if _config.hidden then + hidden = "true" +end print("Name:",_config.name) print("Author:",_config.author) print("Version:",_config.version) +print("Type:",_config.type) print("ID:",_config.id) print("Main:",_config.main) +print("Type:",_config.type) +print("Hidden:",hidden) if not _config.id then @@ -79,6 +88,11 @@ if not _config.main then return end +if not _config.type then + _config.type = "app" +end + + if string.getExtension(output) ~= "spk" then output = output..".spk" end