mirror of
https://github.com/fosskers/cargo-aur.git
synced 2026-07-16 03:42:06 -05:00
[GH-ISSUE #12] Add support for differing binary names #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hisbaan on GitHub (Apr 18, 2022).
Original GitHub issue: https://github.com/fosskers/cargo-aur/issues/12
For example, my package,
didyoumeanbuilds a binary calleddymwith this addition to theCargo.tomlfile:The script fails when running
stripas the binary name is not as the script expects. The issue is with line 246 of main.rs:binary.push(&package.name);which assumes thatpackage.nameis the same as the produced binary.I don't know enough about
Cargo.tomlparsing so I'm not sure how to parse a new field exactly and to change the binary path optionally if that field exists, however I would be glad to work on it if someone could point me in the right direction.@fosskers commented on GitHub (Apr 18, 2022):
This would be an easy fix for me, let me take care of it. Thanks for bringing this to my attention.
@hisbaan commented on GitHub (Apr 18, 2022):
Awesome! Thank you so much :) It's a relatively niche configuration I suppose
@fosskers commented on GitHub (Apr 19, 2022):
I've put up a PR that implements this.
Add support for differing binary namesto [GH-ISSUE #12] Add support for differing binary names