Got the answer:
For Windows Servers:
Goto-> Command prompt
cd %SPLUNK_HOME%\bin splunk package app MyAppName Splunk username: Password :
Application is packaged and stored in location:
When you use the package command and do revisions, the app will be archived in a new folder:
This folder needs to periodically and regularly deleted manually.