Windows: with an Resource Editor it gives many here.
Mac: overwrite the icon file in .app/resources/ folder.
Linux: just deliver png files with different resolutions.
iOS, overwrite the icons and launch images.
I use this application:
https://iconverticons.comWhich convert icons directly for each OS.