Chapter 5 - packaging our moduleWell, now we've just finished our module, we want to package it. By packaging a module, we can make sure it's very easy for everyone to install it, as the user just only has to upload the module archive. You'll need a piece of packaging software that's capable to package with gzip. On Linux distributions (like Ubuntu, Fedora or Suse), you can do this by default. On Windows, you'll have to install some additional software. A packaging tool for Windows that's able to handle gzip, is TugZip. Now we have the required software, you'll need to package the entire module directory (in the case of our poll module: data/modules/polls) into a gzip archive. It's very important that this gzip-archive has the extension .tar.gz. It's also very important that the filename of the archive is exactly the same as the name of the module directory. So in our case, the filename of the archive will be: polls.tar.gz Congratulations, you're done! You can, for example, send the archive to your clients, or use it to install the module in your own pluck installation(s). |