Добавлен парсинг версий программы

pull/3/head^2
Igor Belitskiy 3 years ago
parent e936a3b221
commit 6e47023aac

@ -20,6 +20,11 @@ all: init build
init: init:
@echo "Initialize ..."; \ @echo "Initialize ..."; \
version="$$(cat VERSION.md)"; \
version=$${version:8}; \
search="s/string version_application.*$&"; \
replace="string version_application = \"$${version}\";"; \
sed -i -e "$$search/$$replace/gi" source/ublexec.h; \
echo "-- Build path: ${CMAKE_BUILD_DIR}" echo "-- Build path: ${CMAKE_BUILD_DIR}"
depend: depend:

@ -0,0 +1 @@
VERSION 1.0

@ -146,6 +146,7 @@ void MainWindow::localization(){
btnAbout->set_label(_("About the program")); btnAbout->set_label(_("About the program"));
aboutWindows->set_comments(_("ublexec")); aboutWindows->set_comments(_("ublexec"));
aboutWindows->set_website_label(_("Project Home Page")); aboutWindows->set_website_label(_("Project Home Page"));
aboutWindows->set_version(_(version_application.c_str()));
lblHeaderName->set_text(_("ublexec")); lblHeaderName->set_text(_("ublexec"));
this->set_title(_("ublexec")); this->set_title(_("ublexec"));
btnStart->set_label(_("Run")); btnStart->set_label(_("Run"));

@ -194,6 +194,7 @@ public:
Glib::RefPtr<Gtk::ListStore> list_Development; Glib::RefPtr<Gtk::ListStore> list_Development;
Glib::RefPtr<Gtk::ListStore> list_System; Glib::RefPtr<Gtk::ListStore> list_System;
public: public:
string version_application = "1.0";
string cmd_old = ""; string cmd_old = "";
string user_cmd=""; string user_cmd="";
string user_cmd_old=""; string user_cmd_old="";

Loading…
Cancel
Save