escript

.escript .beam .zip 

生成.zip

1)

>{ok, [_, _, _, {_, Beam}]} = escript:extract("hello_erlang.beam", []).

>file:write_file("hello_erlang.zip", Beam).

2)

.zip文件名须与erlang文件一致

>zip:zip("hello_erlang.zip",["hello_erlang.beam"]).

原文地址:https://www.cnblogs.com/lyz-2019-12-05/p/14143438.html