1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-21 05:35:45 +01:00

Use git describe in About Dialog

- Replaced Commit Id by Version from GIT_DESCRIBE output
- Injected GIT_DESCRIBE macro at Version.cmake
- Removed timestamping from version description and cleaned its code

Resolve: #460

Signed-off-by: Humberto Rocha <humrochagf@gmail.com>
This commit is contained in:
Humberto Rocha
2021-08-12 10:56:15 -04:00
committed by Panagiotis Vasilopoulos
parent 20ee9a6c57
commit e0f34e7154
4 changed files with 9 additions and 22 deletions

View File

@@ -176,7 +176,7 @@ void AboutDialog::CreateInformationTab(ShuttleGui& AboutDialogGUI) {
<< XO("The Build")
<< wxT("</h3>\n<table>"); // start build info table
AddBuildInfoRow(&informationStr, XO("Commit Id:"), BuildInfo::getRevisionIdentifier());
AddBuildInfoRow(&informationStr, XO("Version:"), BuildInfo::getRevisionIdentifier());
AddBuildInfoRow(&informationStr, XO("Build type:"), BuildInfo::getBuildType());
AddBuildInfoRow(&informationStr, XO("Compiler:"), BuildInfo::getCompilerVersionString());
@@ -862,15 +862,15 @@ void AboutDialog::GenerateTenacityPageDescription(wxTextOutputStream& tos) {
#undef _
#define _(s) wxGetTranslation((s))
<< wxT("<h3>DarkTenacity ")
<< wxString(AUDACITY_VERSION_STRING)
<< wxString(GIT_DESCRIBE)
<< wxT("</h3>")
<< wxT("Customised version of the free, open source, cross-platform audio recorder and editor Tenacity.")
#else
<< XO("<h3>")
<< ProgramName
// << wxT(" ")
// << wxString(AUDACITY_VERSION_STRING)
<< wxT(" ")
<< wxString(GIT_DESCRIBE)
<< wxT("</h3>")
/* i18n-hint: The program's name substitutes for %s */
<< XO("Free, open source, cross-platform audio recorder and editor.")