Replies: 1 comment 2 replies
-
please use custom rules rule("epub")
set_extensions("*.xxx")
on_buildcmd_files(function (target, batchcmds, sourcefile, opt)
-- handle file (optional)
end)
on_link(function (target)
-- generate zip
end)
target("test")
add_rules("epub")
add_files("src/*.xxx") |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently there is the
objects
kind which can create arbitrary outputs but it no longer can make use of the filename target fields. This new kind would basically be the same thing but still able to use the filename fields.The use cases would be for example:
It looks like there is already a way to bring your own kinds but they are tied in to the toolchain system. That could probably also work if kinds (and the tools for them) can be defined in a project specific way (ex. so the project can just bring its own ebook toolchain code and use
set_kind(epub)
or something internally.)Beta Was this translation helpful? Give feedback.
All reactions