The GUI is developed with qt5
library and is wrapped as a single executable with pyinstaller
. Although the following documentation refers to building and executing the application under Windows, it's possible to build executables for other operating systems(Linux and macOS).
You might need to install Microsoft Visual C++ Redistributable package for some Windows versions.
You don't need to install the application or run the application as an administrator user. However, some Antivirus programs might report it as a virus. The executables shared with each release is not signed and that's the reason for the virus warning. If you have doubts about the application security, you can build the source code.
All requirements for building the main application are required for building the GUI.
- You need to install requirements under Run Requirements section.
- In order to install the main application requirements you need to install Build Tools for Visual Studio from here.
- Open Command Prompt or PowerShell.
- Navigate to the root of the application repository.
- Install main application requirements via:
$ pip install -r requirements.txt
- Install GUI requirements via:
$ pip install -r requirements.gui.txt
- Build via:
$ python -m PyInstaller gui.spec
- The GUI
.exe
file will be located underdist
directory. In order to debug the app, you can start it via the CLI.
In order to add support for a new parser, you need to list the parser manually into libs\process.py
file in the supported_parsers
dictionary.
You can generate new pyinstaller spec file via:
$ python -m PyInstaller --name "NAP Stocks Calculator" --clean --onefile --noconfirm --hidden-import="libs.parsers" --hidden-import="libs.parsers.*" ".\revolut-stocks\libs\gui\main.py"