This is an old revision of the document!
coreBOS is prepared to make installing and distributing your modules easy.
There are basically two approaches for this:
The first step of obtaining the package file must be done to be able to distribute it on installation.
A coreBOS module package consists of a set of files that implement the functionality of the module and a manifest.xml file which details the necessary meta data and database changes that it needs. You can read more about this in other sections of the wiki.
Once your module is working as you like and you want to package it follow these steps:
You must have these files in place:
There are different ways to acheive this.
If you have linux shell access you can easily obtain the zip package entering the build dirtectory and executing the pack script:
Add the next script to the root of your coreBOS install and execute it from the command line or the browser.
<?php // Turn on debugging level $Vtiger_Utils_Log = false; require_once 'include/utils/utils.php'; include_once('vtlib/Vtiger/Module.php'); global $current_user,$adb; set_time_limit(0); ini_set('memory_limit','1024M'); //Vtiger_Package::packageFromFilesystem('ConfigEditor',true); Vtiger_Package::languageFromFilesystem('es_es','Spanish'); ?>
<?php // Turn on debugging level $Vtiger_Utils_Log = false; require_once 'include/utils/utils.php'; include_once('vtlib/Vtiger/Module.php'); global $current_user,$adb; set_time_limit(0); ini_set('memory_limit','1024M'); //Vtiger_Package::packageFromFilesystem('ConfigEditor',true); Vtiger_Package::languageFromFilesystem('es_es','Spanish'); ?>