代码拉取完成,页面将自动刷新
同步操作将从 EMQX/emqtt-bench 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
IsCentos6 = fun() ->
case file:read_file("/etc/centos-release") of
{ok, <<"CentOS release 6", _/binary >>} ->
true;
_ ->
false
end
end,
IsWin32 = fun() ->
win32 =:= element(1, os:type())
end,
Quicer = {quicer, {git, "https://github.com/emqx/quic.git", {tag, "0.0.111"}}},
IsQuicSupp = not (IsCentos6() orelse IsWin32() orelse
false =/= os:getenv("BUILD_WITHOUT_QUIC")
),
Profiles = {profiles,[ {escript, []}
, {emqtt_bench,
[{relx, [ {release, {emqtt_bench, git}, [ kernel
, stdlib
, emqtt
, getopt
, gun
, cowlib
| [ quicer || IsQuicSupp ]
] }
, {overlay_vars_values, [ {runner_root_dir, "$(cd $(dirname $(readlink $0 || echo $0))/..; pwd -P)"}
, {runner_escript_dir, "$RUNNER_ROOT_DIR/escript"}
]}
, {overlay, [ {mkdir, "bin"}
, {mkdir, "escript"}
, {copy, "_build/emqtt_bench/bin", "escript"}
, {copy, "bin/emqtt_bench","bin/emqtt_bench"}
, {template,"bin/emqtt_bench","bin/emqtt_bench"}
]}
, {include_src, false}
, {include_erts, true}
, {extended_start_script, false}
, {generate_start_script, false}
, {sys_config, false}
, {vm_args, false}
]}
]
}
]},
ExtraDeps = fun(C) ->
{deps, Deps0} = lists:keyfind(deps, 1, C),
Deps = Deps0 ++
[ Quicer || IsQuicSupp ],
lists:keystore(deps, 1, C, {deps, Deps})
end,
NewConfig = [ {escript_incl_apps,
[emqtt_bench |
[ quicer || IsQuicSupp ]
]}
, Profiles
| ExtraDeps(CONFIG)],
% io:format("New Config: ~p~n", [NewConfig]),
NewConfig.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。