Recompiling WAPT from source


Review this section

WAPT components

Python environment

  • Python 2.7.13;
  • client python libraries in requirements.txt;
  • server python libraries in requirements-server.txt;

Create a development environment with virtualenv

With a clean Windows installed:

c:\python27\python -m pip install -U pip setuptools
  • create a development environment with virtualenv;
mkdir c:\tranquilit
git clone (ou git clean -fxd ...)
cd c:\tranquilit\wapt init_workdir.bat

Build environment on Debian Linux

mkdir ~/tranquilit/
cd ~/tranquilit/
git clone
cd ~/tranquilit/wapt/waptserver/deb
cd ~/tranquilit/wapt/waptrepo/deb

Tranquil IT packages

Building WAPT

Installing the WAPT development environment

On a clean Windows 7 install as a Local Administrator:

  • install the WAPT agent from https://srvwapt.mydomain.lan/wapt/waptagent.exe;
  • deactivate UAC;
  • show hidden files and file extensions;
  • increase the width of the CMD windows and flip to quick edit mode;
  • copy the code signing certificate into C:\users\buildbot\Documents;

Installing Lazarus

wapt-get install tis-pyscripter tis-tortoisegit tis-7zip tis-python27 tis-notepadplusplus tis-firefox tis-putty tis-lazarus tis-openssh tis-signtool

unzip sqlite3.dll dans C:\Windows\SysWOW64
md c:\tranquilit

git.exe clone  --recurse-submodules "ssh://" "C:\tranquilit\wapt"
REM git pull --recurse-submodules=yes --ff-only)
cd  \tranquilit\wapt

git clone git:// c:\tranquilit\pltis_indy
git clone git:// c:\tranquilit\pltis_utils
git clone git://  c:\tranquilit\pltis_sogrid
git clone git://  c:\tranquilit\pltis_superobject
git clone git://  c:\tranquilit\Python-for-Lazarus
git clone git:// c:\tranquilit\pltis_virtualtrees
git clone git:// c:\tranquilit\pltis_virtualtreesextra
git clone git:// c:\tranquilit\pltis_dcpcrypt
git clone git:// c:\tranquilit\pltis_luipack
git clone git:// c:\tranquilit\pltis_synapse

c:\lazarus\lazbuild.exe --add-package c:\tranquilit\pltis_dcpcrypt\dcpcrypt_laz.lpk
c:\lazarus\lazbuild.exe --add-package c:\tranquilit\pltis_indy\indylaz.lpk
c:\lazarus\lazbuild.exe c:\tranquilit\pltis_utils\pltis_utils.lpk
c:\lazarus\lazbuild.exe c:\tranquilit\pltis_superobject\pltis_superobject.lpk
c:\lazarus\lazbuild.exe --add-package c:\tranquilit\pltis_virtualtrees\pltis_virtualtrees.lpk
c:\lazarus\lazbuild.exe --add-package c:\tranquilit\pltis_virtualtreesextra\pltis_virtualtreesextra.lpk
c:\lazarus\lazbuild.exe --add-package c:\tranquilit\pltis_sogrid\pltis_sogrid.lpk
c:\lazarus\lazbuild.exe --add-package c:\tranquilit\pltis_dcpcrypt\dcpcrypt_laz.lpk
c:\lazarus\lazbuild.exe c:\tranquilit\pltis_synapse\laz_synapse.lpk
c:\lazarus\lazbuild.exe --add-package c:\tranquilit\pltis_luipack\luicomponents\luicomponents.lpk
c:\lazarus\lazbuild.exe --add-package c:\tranquilit\pltis_luipack\luicomponents\luicomponents.lpk
c:\lazarus\lazbuild.exe --add-package C:\tranquilit\Python-for-Lazarus\python4lazarus\python4lazarus_package.lpk
c:\lazarus\lazbuild.exe --add-package C:\lazarus\components\anchordocking\design\anchordockingdsgn.lpk
c:\lazarus\lazbuild.exe --build-ide=
c:\lazarus\lazbuild.exe c:\tranquilit\wapt\wapt-get\pltis_wapt.lpk

REM depending on version, change community to enterprise
waptpython community

Installing the server environment on Windows

cd \tranquilit\wapt
waptpython waptserver\ all

Create the InnoSetup installers

The .iss files are located in C:\tranquilit\wapt\waptsetup ;

The waptsetup installer includes the python libraries, the command line tool wapt-get, the local webservice waptservice, the packaging tool and the WAPT console waptconsole.

The file waptserver.iss allows to build an installer that includes a Nginx web server in front and the Flask webservice

The waptstarter installer only includes the local webservice and the command line tool wapt-get. It does not include the WAPT console waptconsole, nor the packaging tools.

Right-click on the .iss file ‣ Compile ` will compile an installer with :program:`InnoSetup.

or using the command line:

"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" C:\tranquilit\wapt\waptsetup\waptsetup.iss

The installer’s global parameters are defined with #define in the file header.

If you do not sign the installers, you may comment the lines #define signtool ...