I wanted the same for Mac apps. Turns out, it’s a one word change to Brett’s scripts. Just follow his instructions using the below files, but replace the script name with
macicon.rb and the application name with
Usual disclaimer: It works for me, should work for you, and no bunnies were harmed.