pgadmin4/pkg/win32
Akshay Joshi ad80217593 Remove Python2 references from the source code.
refs #5443

Initial patch: Neel Patel
2020-04-30 17:22:48 +05:30
..
Resources Update copyright notices for 2020. 2020-01-02 14:43:50 +00:00
installer.iss.in SVG image format plugin is added to render the image file from stylesheet. And also removed the theme components staging files used during windows and Mac bundling. 2020-04-22 18:47:13 +05:30
README.txt Remove Python2 references from the source code. 2020-04-30 17:22:48 +05:30
replace.py Apply codestyle checks to all Python code. 2019-03-20 11:17:51 +00:00

Building pgAdmin windows installer on windows
=================================

To generate a pgAdmin 4 installer for Windows bit, the following packages must be installed:

1. Python installation
  - Python 3.4+ or above from https://www.python.org/

2. QT installation
  - Qt 4.6 through 5.5 from http://www.qt.io/

3. PostgreSQL installation
  - PostgreSQL 9.1 or above from http://www.postgresql.org/

4. Inno Setup Installer (unicode)
   - 5.0 and above from http://www.jrsoftware.org/isdl.php

5. Microsoft visual studio (2008 and above)

Building: Depending upon the archicture of the OS(x86|amd64) set then environment variables.

1. Set the PYTHON environment variable to the Python root installation directory, e.g. for x86

   SET "PYTHON_HOME=C:\Python38"
   SET "PYTHON_DLL=C:\Windows\System32\python38.dll"

2. Set the QTDIR environment variable to the QT root installation directory, e.g. for x86

   SET "QTDIR=C:\Qt\Qt5.5.1\5.5\msvc2013"

3. Set the PGDIR environment variable to the PostgreSQL installation directory, e.g. for x86

   SET "PGDIR=C:\Program Files\PostgreSQL\9.5"

4. Set the Inno Setup Installer environment variable to the Inno root installation directory, e.g. for x86

   SET "INNOTOOL=C:\Program Files\Inno Setup 5"

5. Set the Miscrosoft Visual studio environment variable to the Visual studio root installation directory, e.g. for x86

   SET "VCDIR=C:\Program Files\Microsoft Visual Studio 12.0\VC"

6. To build, go to pgAdmin4 source root directory and execute "Make.bat x86|amd64". Based on x86|amd64, this will
   create the python virtual environment and install all the required python modules mentioned in the
   requirements file using pip, build the runtime code and finally create the windows installer x86|amd64 in ./dist directory