Update rebar.config.script

This commit is contained in:
JhonLiu 2021-04-24 11:56:15 +08:00 committed by GitHub
parent f60a6acdfb
commit c8128e7bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,21 +69,21 @@ MakeDep =
case atom_to_list(AppName) of
"emqx" ->
RepoName = string:join(string:tokens(atom_to_list(AppName), "_"), "-"),
{"https://gitee.com/fastdgiot/" ++ RepoName,GitRef};
{"https://gitee.com/fastdgiot/" ++ RepoName ++ ".git", GitRef};
_ ->
case string:split(atom_to_list(AppName),"_") of
["emqx", _] ->
RepoName = string:join(string:tokens(atom_to_list(AppName), "_"), "-"),
{"https://gitee.com/fastdgiot/" ++ RepoName,GitRef};
{"https://gitee.com/fastdgiot/" ++ RepoName ++ ".git",GitRef};
["dgiot", Mod] ->
RepoName = string:join(string:tokens(atom_to_list(AppName), "_"), "_"),
{"https://gitee.com/dgiiot/" ++ RepoName, {branch,"master"}};
{"https://gitee.com/dgiiot/" ++ RepoName ++ ".git", {branch,"master"}};
["shuwa", Mod] ->
RepoName = string:join(string:tokens(atom_to_list(AppName), "_"), "_"),
{"https://gitee.com/fastdgiot/" ++ RepoName, {branch,"master"}};
{"https://gitee.com/fastdgiot/" ++ RepoName ++ ".git", {branch,"master"}};
_ ->
RepoName = string:join(string:tokens(atom_to_list(AppName), "_"), "-"),
{"https://gitee.com/fastdgiot/" ++ RepoName, GitRef}
{"https://gitee.com/fastdgiot/" ++ RepoName ++ ".git", GitRef}
end
end,
{AppName, {git, URL, NewGitRef}}