Files
odoo_source/setup/win32/Makefile
T
Christophe Monniez 50967f0486 [REM] packaging: remove windows 32 bit support
Since may 2020, M$ stopped to ship their 32 bits OS.
So, there is no need to distribute a 32 bit version anymore.

This will reduce the package size by 2.

The new package will use Python 3.10 by default, that's why the
local requirements were changed (a wheel package was missing for windows
in the previous version of PyKCS11).

closes odoo/odoo#124057

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2023-06-07 12:02:20 +02:00

39 lines
1.5 KiB
Makefile

include Makefile.version
include Makefile.python
include Makefile.servicename
SERVER_DIRECTORY=../..
FILES_DIRECTORY=release
MAKENSIS_ARGUMENTS=/DVERSION=$(VERSION) /DMAJOR_VERSION=$(MAJORVERSION) /DMINOR_VERSION=$(MINORVERSION) /DSERVICENAME=${SERVICENAME} /DPYTHONVERSION=${PYTHON_VERSION}
LAUNCH_MAKENSIS=/cygdrive/c/tools/cygwin/makensis $(MAKENSIS_ARGUMENTS) setup.nsi
WINPY64_DIR=/cygdrive/c/odoobuild/WinPy64/python-${PYTHON_VERSION}.amd64
default: allinone
clean: server_clean
rm -rf $(FILES_DIRECTORY)/*.exe
rm -rf *.exe
server_clean:
rm -rf $(SERVER_DIRECTORY)/dist
rm -rf $(SERVER_DIRECTORY)/build
rm -rf $(SERVER_DIRECTORY)/win32/dist
rm -rf $(SERVER_DIRECTORY)/win32/build
rm -rf $(SERVER_DIRECTORY)/*.exe
rm -rf $(SERVER_DIRECTORY)/.cyg*
allinone: server_clean
# need to install requirements-local-proxy.txt for local proxy install
cp $(SERVER_DIRECTORY)/requirements.txt $(WINPY64_DIR)/
cp requirements-local-proxy.txt $(WINPY64_DIR)/
-(cd $(WINPY64_DIR) && ./python.exe -m pip install --upgrade pip)
-(cd $(WINPY64_DIR) && cat requirements*.txt | while read PAC ; do Scripts/pip3.exe install "$${PAC%%#*}" ; done)
-(cd $(WINPY64_DIR) && Scripts/pip3.exe list)
rm $(WINPY64_DIR)/requirements.txt
(cd $(SERVER_DIRECTORY)/setup/win32 && $(LAUNCH_MAKENSIS))
(cd $(SERVER_DIRECTORY)/setup/win32 && mkdir -p $(FILES_DIRECTORY))
(cd $(SERVER_DIRECTORY)/setup/win32 && cp odoo_setup_*.exe $(FILES_DIRECTORY)/)
(cd $(SERVER_DIRECTORY)/setup/win32/$(FILES_DIRECTORY) && chmod 0766 odoo_setup_*.exe)