How to force PlatformIO to rebuild project, even if the source wasn’t changed, so it would generate “firmware.bin” anew?
The purpose for that is to trigger post build script that does some stuff with that “firmware.bin” file, uploads it to my VPS etc.
I found a method that seems to work on this forum:
pio run --target clean pio run pio run --target upload
I was wondering if there is a simpler solution?
BTW, what is so special in “–target upload” so only that triggers rebuild?