Provide binary profile.
This commit is contained in:
parent
3c056db0b5
commit
8ba5f9e2b1
35
rebar.config
35
rebar.config
@ -6,21 +6,6 @@
|
|||||||
]}.
|
]}.
|
||||||
|
|
||||||
|
|
||||||
{escript_incl_apps, [aebytecode, getopt]}.
|
|
||||||
{escript_main_app, aebytecode}.
|
|
||||||
{escript_name, aefateasm}.
|
|
||||||
{escript_emu_args, "%%!"}.
|
|
||||||
{provider_hooks, [{post, [{compile, escriptize}]}]}.
|
|
||||||
|
|
||||||
{post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
|
|
||||||
escriptize,
|
|
||||||
"cp \"$REBAR_BUILD_DIR/bin/aefateasm\" ./aefateasm"},
|
|
||||||
{"win32",
|
|
||||||
escriptize,
|
|
||||||
"robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ aefateasm* "
|
|
||||||
"/njs /njh /nfl /ndl & exit /b 0"} % silence things
|
|
||||||
]}.
|
|
||||||
|
|
||||||
{dialyzer, [
|
{dialyzer, [
|
||||||
{warnings, [unknown]},
|
{warnings, [unknown]},
|
||||||
{plt_apps, all_deps},
|
{plt_apps, all_deps},
|
||||||
@ -35,3 +20,23 @@
|
|||||||
{include_erts, false},
|
{include_erts, false},
|
||||||
|
|
||||||
{extended_start_script, true}]}.
|
{extended_start_script, true}]}.
|
||||||
|
|
||||||
|
{profiles, [{binary, [
|
||||||
|
{deps, [ {getopt, "1.0.1"}
|
||||||
|
]},
|
||||||
|
{escript_incl_apps, [aebytecode, getopt]},
|
||||||
|
{escript_main_app, aebytecode},
|
||||||
|
{escript_name, aefateasm},
|
||||||
|
{escript_emu_args, "%%!"},
|
||||||
|
{provider_hooks, [{post, [{compile, escriptize}]}]},
|
||||||
|
|
||||||
|
{post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
|
||||||
|
escriptize,
|
||||||
|
"cp \"$REBAR_BUILD_DIR/bin/aefateasm\" ./aefateasm"},
|
||||||
|
{"win32",
|
||||||
|
escriptize,
|
||||||
|
"robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ aefateasm* "
|
||||||
|
"/njs /njh /nfl /ndl & exit /b 0"} % silence things
|
||||||
|
]}
|
||||||
|
]}]}.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user