jirutka / luapak

Easily build a standalone executable for any Lua program
MIT License
200 stars 7 forks source link

Cross-compilation #10

Closed LoganDark closed 4 years ago

LoganDark commented 4 years ago

I want to make a windows .exe from macOS, how would I do that?

I have a Windows toolchain set up that can compile C/C++ and many other things to Windows .exes, but I can't figure out how to make luapak use those! I know I need Windows-specific libraries, and I can manage that, but how do I tell luapak to use those and output a Windows-format .exe?

LoganDark commented 4 years ago

It can be done by emitting the wrapper .c file and compiling/linking against the Windows Lua libraries using your cross compilation toolchain of choice!