Skip to content

Commit 8ba5f9e

Browse files
committed
Provide binary profile.
1 parent 3c056db commit 8ba5f9e

1 file changed

Lines changed: 20 additions & 15 deletions

File tree

rebar.config

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@
66
]}.
77

88

9-
{escript_incl_apps, [aebytecode, getopt]}.
10-
{escript_main_app, aebytecode}.
11-
{escript_name, aefateasm}.
12-
{escript_emu_args, "%%!"}.
13-
{provider_hooks, [{post, [{compile, escriptize}]}]}.
14-
15-
{post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
16-
escriptize,
17-
"cp \"$REBAR_BUILD_DIR/bin/aefateasm\" ./aefateasm"},
18-
{"win32",
19-
escriptize,
20-
"robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ aefateasm* "
21-
"/njs /njh /nfl /ndl & exit /b 0"} % silence things
22-
]}.
23-
249
{dialyzer, [
2510
{warnings, [unknown]},
2611
{plt_apps, all_deps},
@@ -35,3 +20,23 @@
3520
{include_erts, false},
3621

3722
{extended_start_script, true}]}.
23+
24+
{profiles, [{binary, [
25+
{deps, [ {getopt, "1.0.1"}
26+
]},
27+
{escript_incl_apps, [aebytecode, getopt]},
28+
{escript_main_app, aebytecode},
29+
{escript_name, aefateasm},
30+
{escript_emu_args, "%%!"},
31+
{provider_hooks, [{post, [{compile, escriptize}]}]},
32+
33+
{post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
34+
escriptize,
35+
"cp \"$REBAR_BUILD_DIR/bin/aefateasm\" ./aefateasm"},
36+
{"win32",
37+
escriptize,
38+
"robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ aefateasm* "
39+
"/njs /njh /nfl /ndl & exit /b 0"} % silence things
40+
]}
41+
]}]}.
42+

0 commit comments

Comments
 (0)