mtinfo/init.lua

23 lines
742 B
Lua
Raw Normal View History

2020-01-06 14:12:37 +01:00
local MP = minetest.get_modpath("mtinfo")
2020-01-06 13:31:18 +01:00
mtinfo = {
basepath = minetest.get_worldpath() .. "/mtinfo"
2019-08-23 09:13:04 +02:00
}
2020-01-06 14:12:37 +01:00
print("[mtinfo] Exporting mtinfo to: " .. mtinfo.basepath)
2020-01-06 13:31:18 +01:00
dofile(MP .. "/common.lua")
dofile(MP .. "/nodes.lua")
dofile(MP .. "/items.lua")
dofile(MP .. "/tools.lua")
dofile(MP .. "/abm.lua")
dofile(MP .. "/lbm.lua")
dofile(MP .. "/recipes.lua")
dofile(MP .. "/textures.lua")
2020-01-06 14:29:14 +01:00
-- copy static assets
minetest.mkdir(mtinfo.basepath .. "/data")
2020-04-27 13:13:00 +02:00
mtinfo.copyrecursive(MP .. "/app/js/lib", mtinfo.basepath .. "/js/lib")
2020-01-06 14:29:14 +01:00
mtinfo.copyrecursive(MP .. "/app/css", mtinfo.basepath .. "/css")
2020-04-27 13:13:00 +02:00
mtinfo.copyfile(MP .. "/app/js/bundle.js", mtinfo.basepath .. "/js/bundle.js")
2020-01-06 14:29:14 +01:00
mtinfo.copyfile(MP .. "/app/index.html", mtinfo.basepath .. "/index.html")