'How to store images in the final product of software development?

When creating a desktop app, we end up with code that loads images from the file of the executable, or some "imgs" directory, to show them on the app. An example of this are the button icons. My question is, in the final product, how should I save the images so that they can be loaded on my app? Most apps don't use a directory that have all their images there, so what is the correct way to store them?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source