COMMON REQUIREMENTS

TimeTracking is built with the following programs and versions (you will need them):

* Qt Community Edition 5.12.2 (qmake is required)
* Visual Studio 2017 (support for x64 architectures should be included)
* NSIS (only for Windows systems)

You must also download the TimeTracking source code from 
https://albertojimenezramiro.github.io/timetracking/download.html and extract it into your computer.

Some scripts are provided to make the program build easier. Follow the steps that corresponds to
your operating system:



LINUX

* open a console terminal and browse to the TimeTrackingDev directory extracted
* edit the Makefile.linux file: set the QMAKE variable with the path to the qmake binary inside your 
  computer. save changes.
* cd "dist"
* ./createDist.sh

At the end of the process, there will be a "dist/TimeTracking" directory with the complete program. 
Also, there will be a .tar.gz inside the "dist/" dir, ready to be deployed. You can either move
the first one to the location you want or take the compressed file and extract it in your desired
location.



WINDOWS

* open a cmd command console and browse to the TimeTrackingDev directory extracted
* edit the "dist\createDistParam.bat" script: adapt the NSISPATH variable if your NSIS is not
  installed in the default directory.
* execute dist\createDistParam.bat <projectDirPath> <QtDirPath> <Qt version> <visualStudioDirPath>

At the end of the process, there will be a installer .exe inside the /dist/ directory. You can
use this installer to deploy the applications wherever you want.

One example for the .bat script call, with the following directories:
 - Qt 5.12.2: C:\Qt
 - VS: "E:\\Visual Studio"
 - TimeTracking: C:\Users\bryan\TimeTracking

> cd "C:\Users\bryan\TimeTrackingDev"
> dist\createDistParam.bat "C:\Users\bryan\TimeTrackingDev" "C:\Qt" 5.12.2 "E:\Visual Studio"

(Note the double quotes "" since some paths have spaces)


 