Hello! I’m trying to augment build pipeline with some project files pre-processing by third-party tool. Looks like the best place for this is lifecycle hook script. The problem is that I can’t get the paths of files in project directory since the hook script is being run in /opt/Defold
directory, where my Defold installation resides; this is confirmed by the following simple hook script:
local M = {}
function M.on_build_started(opts)
local r = io.popen("pwd")
error(r:read("*a"))
end
return M
However, I’d need a full paths to (some) files in project in order to feed those to that third-party tool. How can I acheive that? I’ve looked at opts
argument and even at editor
built-in, but none of those contain the project path to build the file paths upon it.