fix Windows firewall shows Publisher: Unknown

You can test in the powershell with:
(Get-Item "./qtdesignstudio.exe").VersionInfo  | Format-List

Task-number: QDS-14410
Change-Id: I9a01f795d2bd63a3a6579729972eed93608a77e0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tim Jenssen
2024-12-17 17:26:02 +01:00
parent dc1e8c4161
commit 3c9607f348
6 changed files with 12 additions and 2 deletions

View File

@@ -8,7 +8,8 @@ set(IDE_ID "qtcreator") # The IDE id (no spaces, l
set(IDE_CASED_ID "QtCreator") # The cased IDE id (no spaces!)
set(IDE_BUNDLE_IDENTIFIER "org.qt-project.${IDE_ID}") # The macOS application bundle identifier.
set(IDE_APP_ID "org.qt-project.${IDE_ID}") # The free desktop application identifier.
set(IDE_AUTHOR "The Qt Company Ltd. and other contributors.")
set(IDE_PUBLISHER "The Qt Company Ltd.")
set(IDE_AUTHOR "${IDE_PUBLISHER} and other contributors.")
set(IDE_COPYRIGHT "Copyright (C) ${IDE_AUTHOR}")
set(PROJECT_USER_FILE_EXTENSION .user)

View File

@@ -9,7 +9,8 @@ set(IDE_ID "qtdesignstudio") # The IDE id (no spaces, l
set(IDE_CASED_ID "QtDesignStudio") # The cased IDE id (no spaces!)
set(IDE_BUNDLE_IDENTIFIER "org.qt-project.${IDE_ID}") # The macOS application bundle identifier.
set(IDE_APP_ID "io.qt.${IDE_ID}") # The free desktop application identifier.
set(IDE_AUTHOR "The Qt Company Ltd. and other contributors.")
set(IDE_PUBLISHER "The Qt Company Ltd.")
set(IDE_AUTHOR "${IDE_PUBLISHER} and other contributors.")
set(IDE_COPYRIGHT "Copyright (C) ${IDE_AUTHOR}")
set(PROJECT_USER_FILE_EXTENSION .qtds)

View File

@@ -79,12 +79,15 @@ if (WIN32)
set(RC_VERSION "${IDE_VERSION}.0")
set(RC_VERSION_STRING "${IDE_VERSION_DISPLAY}")
set(RC_COPYRIGHT "${IDE_COPYRIGHT}")
set(RC_PUBLISHER "${IDE_PUBLISHER}")
string(REPLACE " " "\\x20" RC_APPLICATION_NAME "${RC_APPLICATION_NAME}")
string(REPLACE " " "\\x20" RC_PUBLISHER "${RC_PUBLISHER}")
string(REPLACE " " "\\x20" RC_COPYRIGHT "${RC_COPYRIGHT}")
string(REPLACE "." "," RC_VERSION "${RC_VERSION}")
target_compile_definitions(qtcreator PRIVATE
RC_PUBLISHER=${RC_PUBLISHER}
RC_APPLICATION_NAME=${RC_APPLICATION_NAME}
RC_VERSION=${RC_VERSION}
RC_VERSION_STRING=${RC_VERSION_STRING}

View File

@@ -23,6 +23,7 @@ VS_VERSION_INFO VERSIONINFO
// U.S. English - Windows, Multilingual
BLOCK "040904E4"
{
VALUE "CompanyName", STRINGIFY(RC_PUBLISHER)
VALUE "FileDescription", STRINGIFY(RC_APPLICATION_NAME)
VALUE "FileVersion", STRINGIFY(RC_VERSION_STRING)
VALUE "ProductName", STRINGIFY(RC_APPLICATION_NAME)

View File

@@ -235,12 +235,15 @@ if (TARGET qmlpuppet AND NOT "${IDE_LOGO_PATH}" STREQUAL "")
set(RC_VERSION "${IDE_VERSION}.0")
set(RC_VERSION_STRING "${IDE_VERSION_DISPLAY}")
set(RC_COPYRIGHT "${IDE_COPYRIGHT}")
set(RC_PUBLISHER "${IDE_PUBLISHER}")
string(REPLACE " " "\\x20" RC_APPLICATION_NAME "${RC_APPLICATION_NAME}")
string(REPLACE " " "\\x20" RC_PUBLISHER "${RC_PUBLISHER}")
string(REPLACE " " "\\x20" RC_COPYRIGHT "${RC_COPYRIGHT}")
string(REPLACE "." "," RC_VERSION "${RC_VERSION}")
target_compile_definitions(qmlpuppet PRIVATE
RC_PUBLISHER=${RC_PUBLISHER}
RC_APPLICATION_NAME=${RC_APPLICATION_NAME}
RC_VERSION=${RC_VERSION}
RC_VERSION_STRING=${RC_VERSION_STRING}

View File

@@ -16,6 +16,7 @@ VS_VERSION_INFO VERSIONINFO
// U.S. English - Windows, Multilingual
BLOCK "040904E4"
{
VALUE "CompanyName", STRINGIFY(RC_PUBLISHER)
VALUE "FileDescription", STRINGIFY(RC_APPLICATION_NAME)
VALUE "FileVersion", STRINGIFY(RC_VERSION_STRING)
VALUE "ProductName", STRINGIFY(RC_APPLICATION_NAME)