[erlang-questions] Creating .EXE from Erlang Application in Windows 7

Tobias Schlager Tobias.Schlager@REDACTED
Thu Oct 23 10:39:25 CEST 2014

'mad bundle' sounds interesting, especially the idea of having an ETS based filesystem. Does this work together with the standard OTP API (code:priv_dir/1 and file module) or do you have to adapt the bundled apps to a custom API?

When writing the https://github.com/schlagert/rebar_escript_plugin I also ran into the issue of not available 'priv' content. My highest directive was not to force apps to use another API than the standard OTP one. In the end, I couldn't figure out a better solution than to unpack everything to the local filesystem on escript startup.... or write a custom (prim_)loader.

@Jean: I did pretty much the same project as a showcase for the rebar_escripit_plugin, see https://github.com/schlagert/serve_it :)


Von: erlang-questions-bounces@REDACTED [erlang-questions-bounces@REDACTED]" im Auftrag von "Maxim Sokhatsky [maxim@REDACTED]
Gesendet: Donnerstag, 23. Oktober 2014 09:47
An: Rohan Sarker; erlang-questions@REDACTED
Betreff: Re: [erlang-questions] Creating .EXE from Erlang Application in Windows 7

Hello. You can create escript bundles with MAD.


The name of the binary should be the same as as the module which has main/1 function. MAD know how yo ordering apps. Binaries made with mad are able to be run under Windows, Linux and Mac. We created ETS filesystem wich unzip all priv dirs of all apps to the memory from the bundle’s static.gz. So you even be able to run N2O sites as the bundles. To create simple N2O site with MAD and bundle it you should do:

    $ mad app sample
    $ cd sample
    $ mad deps compile plan bundle web_app

./web_app packed Site could be run on any machine with Erlang installed in any folder.


erlang-questions mailing list

More information about the erlang-questions mailing list