mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-07 05:23:02 +00:00
chore: add buildlog to all templated code
This commit is contained in:
@@ -8,6 +8,7 @@ function useSourceTemplating(projectName)
|
||||
local templateFile = templateFiles[i]
|
||||
local relativeTemplatePath = path.getrelative(projectFolder, templateFile)
|
||||
local relativeResultPath = path.replaceextension(relativeTemplatePath, "")
|
||||
local relativeLogFilePath = path.replaceextension(relativeTemplatePath, ".log")
|
||||
local resultExtension = path.getextension(relativeResultPath)
|
||||
|
||||
local data = io.readfile(templateFile)
|
||||
@@ -38,8 +39,12 @@ function useSourceTemplating(projectName)
|
||||
buildcommands {
|
||||
'"' .. TargetDirectoryBuildTools .. '/' .. ExecutableByOs('RawTemplater') .. '"'
|
||||
.. ' -o "%{prj.location}/"'
|
||||
.. " --build-log \"" .. relativeLogFilePath .. "\""
|
||||
.. " %{file.relpath}"
|
||||
}
|
||||
buildoutputs {
|
||||
"%{prj.location}/" .. relativeLogFilePath
|
||||
}
|
||||
for i = 1, #games do
|
||||
local gameName = games[i]
|
||||
local outputFileName = path.replaceextension(path.replaceextension(relativeResultPath, "") .. gameName, resultExtension)
|
||||
|
||||
Reference in New Issue
Block a user