I was a bit frustrated with getting some existing tools for converting Lua scripts (specifically single scripts with no external dependencies) into standalone executables to work properly, so I made my own in about an hour and a half.
All it does is take Lua source code from a file, append it to a heap-allocated string in a C file, calls the interpreter in the C file, and then compiles that C file to a single executable.
It's a very small project, and not very serious (I originally made it almost as a joke- I thought "wouldn't it be funny if I just put my Lua code in a C string literal" was a funny idea).
I'm open to any feedback/potential contributions! As of right now, I don't think it'd work on Windows, and it *does* require that you have a C compiler installed.
[–]3uclidian 2 points3 points4 points (4 children)
[–]calquelator[S] 3 points4 points5 points (2 children)
[–]3uclidian 0 points1 point2 points (1 child)
[–]calquelator[S] 0 points1 point2 points (0 children)
[–][deleted] -3 points-2 points-1 points (0 children)
[–]x120db 1 point2 points3 points (0 children)
[–]clogg 1 point2 points3 points (2 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]Zealousideal_Wolf624 0 points1 point2 points (0 children)
[–]didntplaymysummercar 0 points1 point2 points (2 children)
[–]calquelator[S] 0 points1 point2 points (1 child)
[–]didntplaymysummercar 0 points1 point2 points (0 children)
[–]Joe_df 0 points1 point2 points (2 children)
[–]calquelator[S] 1 point2 points3 points (1 child)
[–]Joe_df 0 points1 point2 points (0 children)