当我运行./rebar get-deps compile escriptize
时,它失败并显示以下内容:
WARN: 'escriptize' command does not apply to directory /path/to/foo
Command 'escriptize' not understood or not applicable
我忘记了什么?
答案 0 :(得分:2)
即使您正在生成escript包,钢筋仍然需要foo.app
文件。如果您没有使用./rebar create-app appid=foo
创建“应用程序”,则需要手动创建一个:
{application, foo,
[
{description, ""},
{vsn, "1"},
{registered, []},
{applications, [
kernel, stdlib
]},
{env, []}
]}.
请注意,在./rebar compile
正确生成脚本之前,您可能需要再次foo.app
生成./rebar escriptize
文件。