chore(cpn): Automate setting Companion Help About copyright year (#4578)

This commit is contained in:
Neil Horne
2024-01-28 11:24:03 +10:00
committed by GitHub
parent 06babbdae8
commit 0413643b1c
3 changed files with 4 additions and 1 deletions
+2
View File
@@ -92,6 +92,8 @@ include_directories(
)
############# Do macro replacements on input files #############
string(TIMESTAMP BUILD_YEAR "%Y")
configure_file(${COMPANION_SRC_DIRECTORY}/version.h.in ${CMAKE_BINARY_DIR}/version.h @ONLY)
configure_file(${COMPANION_SRC_DIRECTORY}/companion.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/companion.desktop @ONLY)
configure_file(${COMPANION_SRC_DIRECTORY}/simulator.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/simulator.desktop @ONLY)
+1 -1
View File
@@ -668,7 +668,7 @@ void MainWindow::about()
aboutStr.append("<br/><br/>");
aboutStr.append(tr("File new <a href='%1'>Issue or Request</a>").arg("https://github.com/EdgeTX/edgetx/issues/new/choose"));
aboutStr.append("<br/><br/>");
aboutStr.append(tr("Copyright") + QString(" &copy; 2024 EdgeTX<br/>"));
aboutStr.append(tr("Copyright") + QString(" &copy; 2021-%1 EdgeTX<br/>").arg(BUILD_YEAR));
QMessageBox msgBox(this);
msgBox.setWindowIcon(CompanionIcon("information.png"));
+1
View File
@@ -6,6 +6,7 @@
#cmakedefine VERSION_TAG "@VERSION_TAG@"
#define CODENAME "@CODENAME@"
#define GIT_STR "@GIT_STR@"
#define BUILD_YEAR @BUILD_YEAR@
#define VERSION_NUMBER ((VERSION_MAJOR << 16) | (VERSION_MINOR << 8) | VERSION_REVISION)