When you post the app use the predefined format. At the top there are parameters you can set including the icon that is displayed.
You get to the formats by asking a question with the tag already specified:
http://stackapps.com/questions/ask?tags=*apphttps://stackapps.com/questions/ask?tags=*app*
For scripts/libraries, substitute app with script and library