Removed version from Dino executable

We need a better way to get the version number
This commit is contained in:
LAGonauta 2022-06-17 18:37:34 -03:00
parent c29032bcc6
commit 2d82a4c195
2 changed files with 1 additions and 11 deletions

View file

@ -212,13 +212,7 @@ OPTIONS
${MAIN_EXTRA_OPTIONS} ${MAIN_EXTRA_OPTIONS}
) )
if (PROJECT_VERSION MATCHES "([0-9]+)[.]([0-9]+)[.]([0-9]+)") add_definitions(${VALA_CFLAGS} -DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\" -DLOCALE_INSTALL_DIR=\"${LOCALE_INSTALL_DIR}\")
set(DINO_NUMERIC_VERSION "${CMAKE_MATCH_1},${CMAKE_MATCH_2},${CMAKE_MATCH_3},0")
else()
set(DINO_NUMERIC_VERSION "0,0,0,0")
endif ()
add_definitions(${VALA_CFLAGS} -DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\" -DLOCALE_INSTALL_DIR=\"${LOCALE_INSTALL_DIR}\" -DDINO_NUMERIC_VERSION=${DINO_NUMERIC_VERSION})
if(WIN32) if(WIN32)
add_link_options("-Wl,--export-all-symbols") add_link_options("-Wl,--export-all-symbols")
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> --use-temp-file -O coff <DEFINES> -i <SOURCE> -o <OBJECT>") set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> --use-temp-file -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")

View file

@ -1,6 +1,4 @@
1 VERSIONINFO 1 VERSIONINFO
FILEVERSION DINO_NUMERIC_VERSION
PRODUCTVERSION DINO_NUMERIC_VERSION
BEGIN BEGIN
BLOCK "StringFileInfo" BLOCK "StringFileInfo"
BEGIN BEGIN
@ -8,12 +6,10 @@ BEGIN
BEGIN BEGIN
VALUE "CompanyName", "Dino" VALUE "CompanyName", "Dino"
VALUE "FileDescription", "Dino - Modern XMPP (""Jabber"") Chat Client" VALUE "FileDescription", "Dino - Modern XMPP (""Jabber"") Chat Client"
VALUE "FileVersion", DINO_VERSION
VALUE "InternalName", "dino" VALUE "InternalName", "dino"
VALUE "LegalCopyright", "Dino" VALUE "LegalCopyright", "Dino"
VALUE "OriginalFilename", "dino.exe" VALUE "OriginalFilename", "dino.exe"
VALUE "ProductName", "Dino" VALUE "ProductName", "Dino"
VALUE "ProductVersion", DINO_VERSION
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"