I want to create unity web-app for my new website.So,is there any up to the mark tutorial.I've read Ubuntu's official tutorial on this topic but that is not even complete.I've developed the code but don't know how to package the code
Actually packaging a webapp isn't really different from packaging any other application. Take a look at resources in this answer and especially at existing integrations, e.g. LinkedIn, Feedly and (shameless plug) This Is My Jam.
Basically, you need
debian/ directory with at least the following files (see the guide for details):
controlwith basic description for package manager (see example) Three keys are important for webapps in particular:
installspecifies which files should be installed where
changelogspecifies the resulting version of the package and must follow a very specific format; can be managed using e.g.
You can generate these files using e.g.
dh_make command or just copy the
debian directory from other webapps project and change package names, filenames, and domains.
Once you have the files in place, you should be able to generate package using e.g.
dpkg-buildpackage command (from the
dpkg-dev package). The resulting package is generated in the parent directory.
If you are using version control such as Git or Bazaar, take a look at git-buildpackage or bzr-builddeb respectively (both available in Ubuntu repository). I've found especially the
git dch command useful for maintaining the changelog. There's a nice HowTo on packaging with Git and uploading to PPA.
I'd take a look at this link: http://developer.ubuntu.com/resources/technologies/webapps/ seeing it's the official guide.