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"]).

 

posted @ 2020-12-16 13:47  gzdgz  阅读(126)  评论(0编辑  收藏  举报