132 ..chunk:sub(13+intsize+oldlen, -1)); |
132 ..chunk:sub(13+intsize+oldlen, -1)); |
133 end |
133 end |
134 ]]; |
134 ]]; |
135 end |
135 end |
136 |
136 |
|
137 print_verbose("Packing modules..."); |
137 for _, module in ipairs(modules) do |
138 for _, module in ipairs(modules) do |
138 local modulename, path = module.name, base_path..module.path; |
139 local modulename, path = module.name, base_path..module.path; |
139 print_verbose("Packing "..modulename.." ("..path..")..."); |
140 print_debug("Packing "..modulename.." ("..path..")..."); |
140 local data, err = fetch.filesystem(path); |
141 local data, err = fetch.filesystem(path); |
141 if (not data) and module.url then |
142 if (not data) and module.url then |
142 print_debug("Fetching: ".. module.url:gsub("%?", module.path)) |
143 print_debug("Fetching: ".. module.url:gsub("%?", module.path)) |
143 data, err = fetch.http(module.url:gsub("%?", module.path)); |
144 data, err = fetch.http(module.url:gsub("%?", module.path)); |
144 end |
145 end |