Note: Launchpad icon additions and deletions under Mac are related to app files, if you simply want to add a custom icon to Launchpad, and then specify that you want a command to run, it is not recommended to do so. Launchpad's icon management is not as simple as Linux, and the operation is complex.
General Method:
Add, delete
Simply drag the downloaded app file into the app and delete the app file will also delete the Launchpad icon.
Unconventional methods:
The newer the system, the more invalid the method, so it is not recommended to try.
Launchpad's icon principle is managed using the SQLite file, located here: $ (sudo find/private/var/folders-name com.apple.dock.launchpad)/db/db
The data structure is quite complex.
Alternative methods:
For example, create a shell script on the desktop or/usr/bin to start, or try this method: http://www.cnblogs.com/EasonJim/p/7467457.html
Reference:
Http://www.jianshu.com/p/089393badc42
Add a Delete method to the Launchpad icon in Mac OS x (Add method Don't try, it's a big difference from Linux)