chore(cpn): Automate setting Companion Help About copyright year (#4578)
This commit is contained in:
@@ -92,6 +92,8 @@ include_directories(
|
|||||||
)
|
)
|
||||||
|
|
||||||
############# Do macro replacements on input files #############
|
############# 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}/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}/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)
|
configure_file(${COMPANION_SRC_DIRECTORY}/simulator.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/simulator.desktop @ONLY)
|
||||||
|
|||||||
@@ -668,7 +668,7 @@ void MainWindow::about()
|
|||||||
aboutStr.append("<br/><br/>");
|
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(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("<br/><br/>");
|
||||||
aboutStr.append(tr("Copyright") + QString(" © 2024 EdgeTX<br/>"));
|
aboutStr.append(tr("Copyright") + QString(" © 2021-%1 EdgeTX<br/>").arg(BUILD_YEAR));
|
||||||
|
|
||||||
QMessageBox msgBox(this);
|
QMessageBox msgBox(this);
|
||||||
msgBox.setWindowIcon(CompanionIcon("information.png"));
|
msgBox.setWindowIcon(CompanionIcon("information.png"));
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
#cmakedefine VERSION_TAG "@VERSION_TAG@"
|
#cmakedefine VERSION_TAG "@VERSION_TAG@"
|
||||||
#define CODENAME "@CODENAME@"
|
#define CODENAME "@CODENAME@"
|
||||||
#define GIT_STR "@GIT_STR@"
|
#define GIT_STR "@GIT_STR@"
|
||||||
|
#define BUILD_YEAR @BUILD_YEAR@
|
||||||
|
|
||||||
#define VERSION_NUMBER ((VERSION_MAJOR << 16) | (VERSION_MINOR << 8) | VERSION_REVISION)
|
#define VERSION_NUMBER ((VERSION_MAJOR << 16) | (VERSION_MINOR << 8) | VERSION_REVISION)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user