JSON format
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env luajit
|
||||
package.path = (arg[0]:match("@?(.*/)") or arg[0]:match("@?(.*\\)")) .. "lib" .. package.config:sub(1, 1) .. "?.lua;" .. package.path
|
||||
local utility = require "utility"
|
||||
|
||||
local mods = {}
|
||||
local blacklist = { ".DS_Store", }
|
||||
utility.list("mods", function(file_name)
|
||||
for _, item in ipairs(blacklist) do
|
||||
if item == file_name then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
mods[file_name] = true
|
||||
end)
|
||||
|
||||
local data = {
|
||||
packs = {
|
||||
["Unnamed Luanti TechAge Pack"] = {
|
||||
mods = mods
|
||||
}
|
||||
},
|
||||
mods = mods,
|
||||
}
|
||||
|
||||
utility.save_data(data, "info.json")
|
||||
Reference in New Issue
Block a user