Commit a985ee0f authored by Felipe Borges's avatar Felipe Borges

build, app: Show git HEAD hash in the about dialog

Config.VERSION should look like RELEASE_VERSION-GIT_HEAD.

Config.PACKAGE_VERSION persists being just RELEASE_VERSION.
parent 7db64cf8
......@@ -49,6 +49,7 @@ application_id = 'org.gnome.Boxes@0@'.format (profile)
conf.set_quoted ('PROFILE', profile)
conf.set_quoted ('APPLICATION_ID', application_id)
conf.set_quoted ('NAME_SUFFIX', name_suffix)
conf.set_quoted ('VERSION', '@0@-@VCS_TAG@'.format (meson.project_version()))
config_h = declare_dependency (
sources: vcs_tag (
......@@ -63,7 +64,7 @@ config_h = declare_dependency (
)
)
configure_file (output: 'config.h', configuration: conf)
#configure_file (output: 'config.h', configuration: conf)
config_h_dir = include_directories ('.')
meson.add_install_script (join_paths ('build-aux', 'post_install.py'), data_dir)
......
......@@ -114,7 +114,7 @@ private class Boxes.App: Gtk.Application {
"license-type", Gtk.License.LGPL_2_1,
"program-name", _("Boxes") + Config.NAME_SUFFIX,
"logo-icon-name", Config.APPLICATION_ID,
"version", Config.PACKAGE_VERSION,
"version", Config.VERSION,
"website", Config.PACKAGE_URL,
"wrap-license", true);
});
......
......@@ -13,4 +13,5 @@ namespace Config {
public const string PACKAGE_URL;
public const string APPLICATION_ID;
public const string NAME_SUFFIX;
public const string VERSION;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment