Versioning

There are two ways to define the version in Packthing projects.

It can be specified as an item in the ` packthing.yml ` file.

version: 0.3.4

The version may also be manually set via the ` --version ` command line switch.

packthing deb --version 0.3.4

If no other version is set, it will be the version of the master repository.

The version string must start with a digit to be accepted by most tools. So ` WHOOPDIDOO ` would not be an acceptable version.

Accessing the version

Once you have set the value, various builders expose it to applications for developers to use.

C++

qmake and other C++ builders expose the PACKTHING_VERSION flag which can be embedded into application with the following code: