2016-09-19 57 views

回答

0

我创建了本指南供我个人参考。所以我尽量保持简洁明了。

这将只关注Windows 7环境中的Odoo 8,并且可以轻松适应更高版本。

操作系统:Windows 7,Odoo版本:8

1)安装Python27(https://www.python.org/downloads/windows/)。

2)安装PIP。

Odoo窗口打包文件在https://github.com/odoo/odoo/tree/8.0/setup/win32

可你必须要在Windows主机上搭建Odoo的.exe由于事实的Makefile(https://github.com/odoo/odoo/blob/8.0/setup/win32/Makefile#L7)用的是Cygwin的cygdrive模拟路径。

3)假设的Windows是主机,我们可以继续安装Cygwin(https://cygwin.com/install.html

虽然安装Cygwin,你会得到一个选项来选择支持包。确保你选择了Python类别,并与它一起开发。

一旦Cygwin安装完成,打开Cygwin的终端并输入“make”。如果你有“make:***没有指定目标,没有找到makefile,停止。”,那么你很好。

4)使用你最喜欢的git客户端(我的是http://www.mingw.org/或者你可以使用Cygwin如果你想)并克隆Odoo回购。

git clone https://www.github.com/odoo/odoo --depth 1 --branch 8.0 --single-branch 由于我们构建的是8.0,所以本教程只需一个分支即可。

5)从Odoo repo的req.txt文件安装依赖包。

https://github.com/odoo/odoo/blob/8.0/requirements.txt

https://github.com/odoo/odoo/blob/8.0/doc/requirements.txt

6)对第三方软件的喜欢WkHtmltoPdf和PostgreSQL等放置在此文件夹的静态文件夹的静态。 https://github.com/odoo/odoo/tree/8.0/setup/win32/static

7)从https://www.postgresql.org/download/windows/下载PostgreSQL并将其置于静态文件夹下。

8)对于WkHtmltoPdf,推荐版本为0.12.1,可在WkHtmltoPdf下载页面的存档部分中找到。

http://download.gna.org/wkhtmltopdf/0.12/0.12.1/下载并将基于arch的必要文件放在静态文件夹下。需要

9)安装文件中的图像将被放置在https://github.com/odoo/odoo/tree/8.0/setup/win32/static/pixmaps

10)编辑https://github.com/odoo/odoo/blob/8.0/setup/win32/Makefile.version,并进入VERSION = 8.0

文件,你可能感兴趣的:

服务:https://github.com/odoo/odoo/blob/8.0/setup/win32/win32_service.py

设置:https://github.com/odoo/odoo/blob/8.0/setup/win32/win32_setup.py

Makensis:https://github.com/odoo/odoo/blob/8.0/setup/win32/setup.nsi

套餐:https://github.com/odoo/odoo/blob/8.0/setup/package.py

11)更改根据您的需要了NSI文件,该文件可在https://github.com/odoo/odoo/blob/8.0/setup/win32/setup.nsi

如果您是从http://nsis.sourceforge.net/和安装在与默认的不同位置使用NSIS,您可能需要更改路径为Makefile下列文件:

https://github.com/odoo/odoo/blob/8.0/setup/win32/Makefile#L12

12)最后,构建命令是打开Cygwin的终端并导航到https://github.com/odoo/odoo/tree/8.0/setup/win32

输入 “使-f生成文件”

在成功运行,最终 “OpenERP的-ALLINONE - 设置 - 8.0.exe” 将在同一文件夹中。

来源https://www.odoo.com/forum/help-1/question/how-to-build-odoo-10-for-windows-as-an-executable-software-117670

2

Odoo是一个基于Web的应用程序,而不是一个桌面应用程序。

相关问题