[erlang-questions] Creating .EXE from Erlang Application in Windows 7
Jean Parpaillon
jean.parpaillon@REDACTED
Thu Oct 23 11:28:31 CEST 2014
Hi,
Le jeudi 23 octobre 2014 à 08:39 +0000, Tobias Schlager a écrit :
> '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 :)
Great :)
Jean
>
> Regards
> Tobias
>
> ________________________________________
> 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.
>
> https://synrc.com/apps/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.
>
> --
> 5HT
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
--
Jean Parpaillon
Open Source Consultant
Phone: +33 6 30 10 92 86
im: jean.parpaillon@REDACTED
skype: jean.parpaillon
linkedin: http://www.linkedin.com/in/jeanparpaillon/en
More information about the erlang-questions
mailing list