This document is quick guide for developing and updating the Pactus Core GUI.
The Pactus Core GUI utilizes gtk for desktop GUI. To develop, build and test it you must have these packages installed:
libgtk-3-dev
libcairo2-dev
libglib2.0-dev
Install using apt:
apt install libgtk-3-dev libcairo2-dev libglib2.0-dev
gtk+3
Install using brew:
brew install gtk+3
glib2-devel
mingw-w64-x86_64-go
mingw-w64-x86_64-gtk3
mingw-w64-x86_64-glib2
mingw-w64-x86_64-gcc
mingw-w64-x86_64-pkg-config
With these packages installed you can build GUI using make build_gui
command. You can run the GUI like: ./pactus-gui
, ./pactus-gui.exe
.
The Assets file includes required images, icons, ui files and custom CSS files. All .ui
files are used to defined the user interface of GUI, for a proper edit and change on them make sure you have Glade installed on your machine.
When you make changes on GUI files and try to run linter using make check
, it won't include gtk in it's checks. So make sure you add gtk build flag like this:
BUILD_TAG=gtk make check