Hello all! I’m (on Windows) trying to turn a mix project (
exe_example ) into an executable with
mix escript.build at the root of the project. A file titled ‘exe_example’ is created, but whenever I tried to run it via
.\ , double-click , etc. it just opens the binary file itself, instead of executing any instructions, so I’m just presented with symbols and gibberish. Curious, I checked the properties of the file that was being created, and it was listed as having only an ‘A’ attribute, meaning it is an archive file, not an executable. Trying to manually convert this archive file into an executable didn’t do the trick either. In addition, another oddity is that while the code is very small (just a sort of hello world cli program), the file ends up being about a megabyte size minimum, I assume this is elixir being embedded, or something else?
I’ve tried copying a few different tutorials online that were all essentially doing a basic cli program, and whenever I’ve gotten to the point of building the executable, I’ve run into this every time, and I’ve also tried on my laptop as well (also windows) and I had the same issue.
Has anyone else had this happen or otherwise might know a cause?