Fix windows executables not having .exe suffix.

This commit is contained in:
Gregory C. Oakes 2021-03-24 23:01:48 -05:00 committed by Nicolas Mattia
parent 683f785848
commit 59bcaf4c47

View file

@ -354,7 +354,7 @@ let
log "Using file $cargo_build_output_json to retrieve build (executable) products"
while IFS= read -r to_copy; do
bin_path=$(jq -cMr '.executable' <<<"$to_copy")
bin_name=$(jq -cMr '.target.name' <<<"$to_copy")
bin_name="$(basename "$bin_path")"
log "found executable $bin_name -> $out/bin/$bin_name"
cp "$bin_path" "$out/bin/$bin_name"
done < <(jq -cMr "$cargo_bins_jq_filter" <"$cargo_build_output_json")