install-release icon indicating copy to clipboard operation
install-release copied to clipboard

Allow setting custom name of a tool

Open gothrek22 opened this issue 6 months ago • 4 comments

Is your feature request related to a problem? Please describe.

Currently, when using ir get -n TOOL_NAME, to get a specific binary, that name is also used when saving the tool. i.e. there is an issue when picking the asset for yt-dlp. This requires setting -n flag, which in turn will have the full asset name as the binary's name. Decreasing user experience.

This would also help with stuff like cli/cli.

Describe the solution you'd like

Add a flag that allows custom name to be set for the binary.

Describe alternatives you've considered

Change asset detection to use .tar|.zip as last resort.

Additional context

DEBUG name:'yt-dlp', chances: 0.1111111111111111               core.py:196
DEBUG name:'yt-dlp.exe', chances: 0.1111111111111111           core.py:196
DEBUG name:'yt-dlp.tar.gz', chances: 0.2222222222222222        core.py:196
DEBUG name:'yt-dlp_linux', chances: 0.2222222222222222         core.py:196
DEBUG name:'yt-dlp_linux_aarch64', chances: 0.2222222222222222 core.py:196
DEBUG name:'yt-dlp_linux_armv7l', chances: 0.2222222222222222  core.py:196
DEBUG name:'yt-dlp_macos', chances: 0.1111111111111111         core.py:196
DEBUG name:'yt-dlp_macos.zip', chances: 0.2222222222222222     core.py:196
DEBUG name:'yt-dlp_macos_legacy', chances: 0.1111111111111111  core.py:196
DEBUG name:'yt-dlp_min.exe', chances: 0.1111111111111111       core.py:196
DEBUG name:'yt-dlp_win.zip', chances: 0.2222222222222222       core.py:196
DEBUG name:'yt-dlp_x86.exe', chances: 0.2222222222222222       core.py:196
DEBUG name:'_update_spec', chances: 0

gothrek22 avatar Aug 14 '24 22:08 gothrek22