2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-03-06 21:13:02 +00:00

chore: add buildlog to all templated code

This commit is contained in:
Jan Laupetin
2026-03-05 20:07:52 +00:00
parent 5f28bcc58a
commit 027d47d549

View File

@@ -8,6 +8,7 @@ function useSourceTemplating(projectName)
local templateFile = templateFiles[i] local templateFile = templateFiles[i]
local relativeTemplatePath = path.getrelative(projectFolder, templateFile) local relativeTemplatePath = path.getrelative(projectFolder, templateFile)
local relativeResultPath = path.replaceextension(relativeTemplatePath, "") local relativeResultPath = path.replaceextension(relativeTemplatePath, "")
local relativeLogFilePath = path.replaceextension(relativeTemplatePath, ".log")
local resultExtension = path.getextension(relativeResultPath) local resultExtension = path.getextension(relativeResultPath)
local data = io.readfile(templateFile) local data = io.readfile(templateFile)
@@ -38,8 +39,12 @@ function useSourceTemplating(projectName)
buildcommands { buildcommands {
'"' .. TargetDirectoryBuildTools .. '/' .. ExecutableByOs('RawTemplater') .. '"' '"' .. TargetDirectoryBuildTools .. '/' .. ExecutableByOs('RawTemplater') .. '"'
.. ' -o "%{prj.location}/"' .. ' -o "%{prj.location}/"'
.. " --build-log \"" .. relativeLogFilePath .. "\""
.. " %{file.relpath}" .. " %{file.relpath}"
} }
buildoutputs {
"%{prj.location}/" .. relativeLogFilePath
}
for i = 1, #games do for i = 1, #games do
local gameName = games[i] local gameName = games[i]
local outputFileName = path.replaceextension(path.replaceextension(relativeResultPath, "") .. gameName, resultExtension) local outputFileName = path.replaceextension(path.replaceextension(relativeResultPath, "") .. gameName, resultExtension)