Skip to content

Commit

Permalink
Use verbose version in version string (-v)
Browse files Browse the repository at this point in the history
  • Loading branch information
oblivioncth committed Nov 6, 2023
1 parent 32c70ae commit ecc6258
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ ob_add_cpp_vars(${APP_TARGET_NAME}
NAME "project_vars"
PREFIX "PROJECT_"
VARS
VERSION_STR "\"${PROJECT_VERSION}\""
VERSION_STR "\"${PROJECT_VERSION_VERBOSE}\""
SHORT_NAME "\"${APP_ALIAS_NAME}\""
TARGET_FP_VER_PFX_STR "\"${TARGET_FP_VERSION_PREFIX}\""
APP_NAME "\"${PROJECT_FORMAL_NAME}\""
Expand Down
2 changes: 1 addition & 1 deletion app/src/command/c-update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ CUpdateError CUpdate::checkAndPrepareUpdate() const
return ue;

// Check if newer
QVersionNumber currentVersion = QVersionNumber::fromString(QCoreApplication::applicationVersion());
QVersionNumber currentVersion = QVersionNumber::fromString(QCoreApplication::applicationVersion().mid(1)); // Drops 'v'
Q_ASSERT(!currentVersion.isNull());
QVersionNumber newVersion = QVersionNumber::fromString(rd.tag_name.mid(1)); // Drops 'v'
if(newVersion.isNull())
Expand Down
2 changes: 1 addition & 1 deletion app/src/kernel/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class Core : public QObject
static inline const QString HELP_COMMAND_TEMPL = u"<br><b>%1:</b> &nbsp;%2"_s;

// Command line messages
static inline const QString CL_VERSION_MESSAGE = u"CLI Flashpoint version " PROJECT_VERSION_STR ", designed for use with Flashpoint Archive " PROJECT_TARGET_FP_VER_PFX_STR " series"_s;
static inline const QString CL_VERSION_MESSAGE = u"CLI Flashpoint " PROJECT_VERSION_STR ", designed for use with Flashpoint Archive " PROJECT_TARGET_FP_VER_PFX_STR " series"_s;

// Input strings
static inline const QString MULTI_TITLE_SEL_CAP = u"Title Disambiguation"_s;
Expand Down

0 comments on commit ecc6258

Please sign in to comment.