|
|
| Line 672: |
Line 672: |
|
| |
|
| =创建一个安装包来分发和安装您的模块= | | =创建一个安装包来分发和安装您的模块= |
| This process must be used to generate a package to submit it on the http://www.dolistore.com market place.
| | 必须使用此步骤来制作安装包,以便将其提交到市场 http://www.dolistore.com。 |
| But you can use it to have a package easy to distribute on your on network.
| |
|
| |
|
| *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 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...)
| | *进入 '''/build''' 目录并将文件 '''makepack-dolibarrmodules.conf''' 复制到 '''makepack-mymodule.conf'''。请注意,稳定版本包中可能不提供此目录。如果是这种情况,可以在 Dolibarr 网站的“开发版本”部分供下载的快照中检索(在这种情况下,请获取整个 build 目录,这是一个独立于版本的目录)。 |
|
| |
|
| *Run the script via Perl (need the Perl version 5.0 or later): | | 在此文件中输入为模块创建的新文件的名称清单(模块描述符、新表的SQL文件、PHP页面、图像等)。 |
| | |
| | *通过 Perl 运行脚本(需要Perl 5.0或更高版本): |
|
| |
|
| <syntaxhighlight lang="bash"> | | <syntaxhighlight lang="bash"> |
| perl makepack-dolibarrmodule.pl | | perl makepack-dolibarrmodule.pl |
| </syntaxhighlight> | | </syntaxhighlight> |
| The script asks you the name of your module, its major and minor version. A file '''mymodule.zip ''' 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: | | 该脚本将询问模块的名称、主要版本和次要版本。然后将生成一个 '''mymodule.zip '''文件,其中包含准备部署的模块。 |
| | |
| | *接收您的模块的人员必须将该文件放在其 Dolibarr 的安装根目录中,并执行以下命令: |
|
| |
|
| <syntaxhighlight lang="bash"> | | <syntaxhighlight lang="bash"> |
| Line 692: |
Line 694: |
| </syntaxhighlight> | | </syntaxhighlight> |
|
| |
|
| *If you want your module to be public, you can submit it (the zip file) on Dolibarr market place web site: {{LinkToPluginDownload}} (you must create an account first and be logged to use the link "Submit a module/product"). | | *如果您希望您的模块惠及所有人,您可以在插件市场 {{LinkToPluginDownload}} 上提交它(zip文件)(您必须先创建一个帐户并登录,以使用“提交模块/产品”链接)。 |
| **If your module was build correctly, file will be validated later. | | **如果您的模块制作正确,文件将很快通过验证。 |
| **If quality is enough and license permits it, code might be added inside main Dolibarr sources (except if you disagree for that). | | **如果质量足够好、许可证允许、并且模块的功能被证明是普遍感兴趣的,则可以将代码添加到 Dolibarr 的源代码中(除非您不希望这样做)。 |
|
| |
|
| =Dolistor上的外部模块的启用/激活条件= | | =Dolistore上外部模块的归档和验证= |
|
| |
|
| See [[Module_Dolistore_Validation_Rules|Validation Rules]]
| | 请参阅 [[Module_Dolistore_Validation_Rules|验证规则]] |