Skip to content
Discussion options

You must be logged in to vote

I seem to have duck-debugged my way onto a decent solution:

function copy_latest(target)
    destination = 'build/latest/'
    os.mkdir(destination)
    os.cp(target:targetfile(), destination)
end

target('app')
    ...
    after_build(copy_latest)

This way instead of resolving build/$plat/$arch/$mode/app I can just run build/latest/app. Also handy when manually running from command line.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dkaszews
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant