31,003
edits
| Line 324: | Line 324: | ||
et [http://www.dolibarr.com/wikidev/index.php/Interfaces_Exterieur_vers_Dolibarr Interfaces_Exterieur_vers_Dolibarr] | et [http://www.dolibarr.com/wikidev/index.php/Interfaces_Exterieur_vers_Dolibarr Interfaces_Exterieur_vers_Dolibarr] | ||
= | = Create a package to distribute and install your module = | ||
* | * Go into the directory '''/build''' and copy the file '''makepack-dolibarrmodules.conf''' into '''makepack-mymodule.conf'''. Warning, this directory may not be provided in some packages of stable versions. If so, it can be retrieved from the CVS snapshot available for download on the Dolibarr website in area "Development version" (taken in this case the whole build directory which is autonomous and independent directory). | ||
* | Edit this file to add list of file names for all new files you created for your module (module descriptor, new sql tables files, php page, images, etc ...) | ||
* Run the script via Perl (need the Perl version 5.0 or later): | |||
<pre> | <pre> | ||
perl makepack-dolibarrmodule.pl | perl makepack-dolibarrmodule.pl | ||
</pre> | </pre> | ||
The script asks you the name of your module, its major and minor version. A file '''mymodule.tgz ''' will then be manufactured containing your module ready to be deployed. | |||
* | * The person who receives your module must then place the file in the root directory of a Dolibarr installation and perform the command: | ||
<pre> | <pre> | ||
tar -xvf monmodule.tgz | tar -xvf monmodule.tgz | ||