Customizable desktop clock widget written in Qt5 framework.
To get started make sure you have all the following requirements and after that open desktop-clock project with Qt Creator.
- Qt 5
- Qt Creator
- Qt Installer Framework 3
- Git
desktop-clock project uses submodule itay-grudev/SingleApplication to enchant application with singleton implementation.
Make sure that you have pulled all submodules before build phase, you can do this by using command:
git submodule update --init --recursive
You can monitor build process by keeping Compile Output
(Alt + 4) tab open in Qt Creator,
it is very useful in case something goes wrong and you need to see error messages.
- Start by navigating to
Projects
and make sure thatActive Project
is set todesktop-clock
in side menu. - Under the
Build Settings
header there is dropdown with labelEdit build configuration
, change this to berelease
. - Next thing to do is to disable/untick
Shadow build
option, by doing so Qt Creator will use project folder as destination folder.
Now you are ready to start adding Custom Process Steps,
you can add them by clicking caret in dropdown that has text Add Build Step
inside,
after dropdown opens select Custom Process Step
, this gives you a new form to fill up.
-
Command
For field with label
Command
first thing to do is to locatewindeployqt.exe
on your filesystem. If this binary exists in your environment's PATH variable then you can just enter the name of the binary without any leading directories.This binary is usually located at
{Qt Directory}\{Qt Version}\{Compiler Directory}\bin\windeployqt.exe
-
Arguments
For field with label
Arguments
enter following value:installer\packages\eu.murda.desktopclock\data\desktop-clock.exe
-
Working directory
For field with label
Working directory
make sure that value is set to%{buildDir}
, it usually is by default.
-
Command
For field with label
Command
first thing to do is to locatebinarycreator.exe
on your filesystem. If this binary exists in your environment's PATH variable then you can just enter name of the binary without any leading directories.This binary is usually located at
{Qt Directory}\Tools\QtInstallerFramework\3.{*}\bin\binarycreator.exe
-
Arguments
For field with label
Arguments
enter following value:--offline-only -c installer\config\config.xml -p installer\packages installer\DesktopClockInstaller.exe
-
Working directory
For field with label
Working directory
make sure that value is set to%{buildDir}
, it usually is by default.
This step is completely optional, but by adding this step your final installer file will be much smaller in size.
You can download upx.exe
binary from here: https://upx.github.io
-
Command
For field with label
Command
first thing to do is to locateupx.exe
on your filesystem. If this binary exists in your environment's PATH variable the you can just enter name of the binary without any leading directories. -
Arguments
For field with label
Arguments
enter following value:-9 installer\DesktopClockInstaller.exe
-
Working directory
For field with label
Working directory
make sure that value is set to%{buildDir}
, it usually is by default.
Final installer file will be located in directory installer
and named DesktopClockInstaller.exe
.