Build generic ESP32 bin

I’ve built a number of different projects for specific boards, no problem there. My current project I test on a LoLin D32, and that also works just fine.
I’d like like to distribute the firmware using ESP32 Web Tools, but can’t figure out how other projects using ESP Web Tools are able to build 1 generic ESP32 bin.
My project is very small and uses 8 input pins and BLE. No special stuff.

Is a generic ESP32 even possible using Platform.io? Or is the problem maybe that I’m using the Arduino framework instead of ESP-IDF?
If it is possible, please advice which piece of documentation I need to read (again), or maybe even better, a link to a project which has my desired setup.

Really, any help is very much appreciated.