mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 06:14:59 +00:00
22 lines
371 B
Lua
22 lines
371 B
Lua
local M = {}
|
|
|
|
function M.prepare_zip(blueprint)
|
|
local entries = {}
|
|
local files = blueprint.files or {}
|
|
|
|
for _, file in ipairs(files) do
|
|
local content = file.content or ""
|
|
table.insert(entries, {
|
|
path = file.path,
|
|
size = string.len(content)
|
|
})
|
|
end
|
|
|
|
return {
|
|
name = blueprint.name or "project",
|
|
entries = entries
|
|
}
|
|
end
|
|
|
|
return M
|