714
edits
No edit summary Tag: 2017 source edit |
No edit summary |
||
| Line 11: | Line 11: | ||
[[Category:FAQ ZH]] | [[Category:FAQ ZH]] | ||
{{TemplateDocDevZh}} | {{TemplateDocDevZh}} | ||
以下是有关如何检索和使用Dolibarr项目源代码的信息。 | |||
介绍了几种方法,但我们建议使用基于GitHub的方法。 | |||
= | =通过下载 tgz 获取源代码的最新版本= | ||
非技术用户可以使用此方法。 | |||
此方法用于获取主开发分支(称为HEAD)的源代码。此操作包括下载Dolibarr应用程序文件的最新版本,这些文件每晚打包成 tgz 文件。此文件可通过以下链接获得: | |||
{{LinkLastSnapshot}} | {{LinkLastSnapshot}} | ||
新文件会覆盖旧文件。这种方法的不便之处在于,每次要获取更新时都必须下载和解压缩包。 | |||
开发人员不应使用此方法获取源代码,而应使用下一个方法。 | |||
= | =使用GIT匿名访问获取源代码的最新版本= | ||
您可以在没有任何 GIT 访问权限的情况下使用此方法。但使用本方法不能提交任何代码变更,因此,如果您是开发人员,建议创建一个 GitHub 帐户并使用下一个方法而不是本方法。 | |||
== | ==前提条件== | ||
*使用Eclipse IDE | |||
首先,您需要成功安装Eclipse及其 '''EGit''' 插件。 | |||
要安装 '''EGit''' 插件,请使用Eclipse菜单中的'''帮助''',其次单击'''安装新软件''',然后单击'''可用软件站点'''。在出现的地址清单中,找到链接: | |||
https://download.eclipse.org/egit/updates | https://download.eclipse.org/egit/updates | ||
之后,选择要安装的 '''EGit'''(无需选择 JGit) | |||
* | *使用 GIT 命令行客户端 | ||
为了检索源代码并对其进行修改,您需要拥有一个GitHub帐户并安装一个GIT客户端(Linux平台的GIT命令行工具使用“sudo apt-get install git”安装,Windows平台的GIT客户端前往 https://git-scm.com/download/win 下载并安装)。 | |||
== | ==克隆== | ||
首先,在 GIT 客户端工具中输入包含引用源的存储库的值。 | |||
* | *使用 Eclipse,进入 GIT,单击“克隆 GIT 存储库”按钮。输入要获取的项目的 GIT URL。 | ||
GIT Url for Dolibarr official source is: | GIT Url for Dolibarr official source is: | ||
| Line 220: | Line 220: | ||
*Choose commit you request inclusion and validate. | *Choose commit you request inclusion and validate. | ||
=Ask official project to include your changes (PR) = | =Ask official project to include your changes (PR)= | ||
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project. We call this "making a pull or a merge request" also called "PR". | Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project. We call this "making a pull or a merge request" also called "PR". | ||
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/ | For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/ | ||
edits