2016-09-19 100 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的應用程序,而不是一個桌面應用程序。

相關問題