rebar3Relx: only link executables in $out/bin
This commit is contained in:
parent
8588b80af4
commit
4b0ea06ff3
1 changed files with 2 additions and 2 deletions
|
@ -80,10 +80,10 @@ let
|
|||
dir=${if releaseType == "escript"
|
||||
then "bin"
|
||||
else "rel"}
|
||||
mkdir -p "$out/$dir"
|
||||
mkdir -p "$out/$dir" "$out/bin"
|
||||
cp -R --preserve=mode "_build/${profile}/$dir" "$out"
|
||||
${lib.optionalString (releaseType == "release")
|
||||
"mkdir -p $out/bin && ln -s -t $out/bin $out/rel/*/bin/*"}
|
||||
"find $out/rel/*/bin -type f -executable -exec ln -s -t $out/bin {} \\;"}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue