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