Skip to content

Ability to customize name of binary output. #1152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
draco2003 opened this issue Jan 26, 2021 · 2 comments
Closed

Ability to customize name of binary output. #1152

draco2003 opened this issue Jan 26, 2021 · 2 comments
Assignees

Comments

@draco2003
Copy link

Bug Report

I use system for OTA Updates which requires binaries with a certain naming schema.
The previous version I had been using this worked perfectly. Changed machines and installed the latest to find that option isn't available.

Previous arduino-cli version had an --output flag that allowed me to have something like this in my build script.

--output ../firmware/"$BUILDNAME"-"$BUILDVERSION".bin

It would be great to have this functionality back so that we don't have to jump through hoops to rename the file after building it.

Environment

  • CLI version (output of arduino-cli version): 0.14.0
  • OS and platform: Raspberrypi x64
@silvanocerza
Copy link
Contributor

Which version were you using before that the --output flag? We're talking about the compile command right? Just want to be sure.

@draco2003
Copy link
Author

Definitely appreciate the desire to confirm. Don't want to waste any time.

Had to do some digging, but looks like this commit is the one that removed the "output" option and switched to the "output-dir" option. Would love the output option back, or an outputfilename option or something similar.

ebc28e1#diff-4cfe4c705335bdee380ac833a37b2b10b1ba7fbccb521eb78e596e33225d2c12

Which leads to this PR that mentions the output deprecation:
#687

Which lead me to search more closed issues and finally found this one:
#983
Specifically the answer of not adding that back:
#983 (comment)

Will go the "build a rename/cleanup script" route to do it after builds, but want to officially give getting that feature back a +1 where ever we can register those requests :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants