From 99bcdf969aa6ad79034f4689a5cf715a960658ca Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Jul 2026 00:34:25 +0800 Subject: add transform lua file support --- tests/projects/other/bin2c/transform.lua | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/projects/other/bin2c/transform.lua (limited to 'tests/projects/other/bin2c/transform.lua') diff --git a/tests/projects/other/bin2c/transform.lua b/tests/projects/other/bin2c/transform.lua new file mode 100644 index 000000000..54cf1f394 --- /dev/null +++ b/tests/projects/other/bin2c/transform.lua @@ -0,0 +1,5 @@ +function main(inputfile, outputfile) + import("core.base.bytes") + local data = io.readfile(inputfile, {encoding = "binary"}) + io.writefile(outputfile, data:reverse(), {encoding = "binary"}) +end -- cgit v1.3.1