Packaging and Distribution
At this stage we have a working Gambas project file, but the only people who can use it are those who already have Gambas installed. That leaves out a lot of users! To make your program more portable for distribution, there are two steps you can carry out:
1. Make an executable file
2. Package the file for distribution as a .deb
To make an executable file, go to the Project menu and select "Make Executable." Within a few seconds this will create a file called XYZ.gambas, where XYZ is your project name, inside your project directory. This can be copied and distributed to anyone who has a runtime version of Gambas installed, which includes by default most of the major Linux distributions. A second option, "Project/Make Source Archive' will just bundle together all the files associated with the program into a single compressed .gz file.
To make the application more portable still, it can be bundled into an installation package. "Project/Make Installation Package" gives the user the option of making installation packages for any or all of the major distros: Debian, Fedora, Mandriva, OpenSUSE, and of course Ubuntu. A wizard then takes the user through the necessary steps: the creator's name and email address are added, the appropriate group is chosen for repository storage, and a default Applications menu category and position is specified for each distro package. Gambas then compiles the necessary files into a distributable which can be uploaded to a repository.