mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-14 21:41:06 -05:00
CPackIFW: Fix regression in icon file names
Changes in commit 761b6e2466 (CPackIFW: Avoid colliding names for icons
/ logos, 2021-10-08, v3.23.0-rc1~546^2) accidentally left an extra `.`
in computed file names. Remove it.
Fixes: #23423
This commit is contained in:
committed by
Brad King
parent
5b2e097fbf
commit
331c5d458e
@@ -424,7 +424,7 @@ void cmCPackIFWInstaller::GenerateInstallerFile()
|
||||
if (!this->Logo.empty()) {
|
||||
std::string srcName = cmSystemTools::GetFilenameName(this->Logo);
|
||||
std::string suffix = cmSystemTools::GetFilenameLastExtension(srcName);
|
||||
std::string name = "cm_logo." + suffix;
|
||||
std::string name = "cm_logo" + suffix;
|
||||
std::string path = this->Directory + "/config/" + name;
|
||||
cmsys::SystemTools::CopyFileIfDifferent(this->Logo, path);
|
||||
xout.Element("Logo", name);
|
||||
@@ -461,7 +461,7 @@ void cmCPackIFWInstaller::GenerateInstallerFile()
|
||||
std::string srcName =
|
||||
cmSystemTools::GetFilenameName(this->InstallerApplicationIcon);
|
||||
std::string suffix = cmSystemTools::GetFilenameLastExtension(srcName);
|
||||
std::string name = "cm_appicon." + suffix;
|
||||
std::string name = "cm_appicon" + suffix;
|
||||
std::string path = this->Directory + "/config/" + name;
|
||||
cmsys::SystemTools::CopyFileIfDifferent(this->InstallerApplicationIcon,
|
||||
path);
|
||||
@@ -476,7 +476,7 @@ void cmCPackIFWInstaller::GenerateInstallerFile()
|
||||
std::string srcName =
|
||||
cmSystemTools::GetFilenameName(this->InstallerWindowIcon);
|
||||
std::string suffix = cmSystemTools::GetFilenameLastExtension(srcName);
|
||||
std::string name = "cm_winicon." + suffix;
|
||||
std::string name = "cm_winicon" + suffix;
|
||||
std::string path = this->Directory + "/config/" + name;
|
||||
cmsys::SystemTools::CopyFileIfDifferent(this->InstallerWindowIcon, path);
|
||||
xout.Element("InstallerWindowIcon", name);
|
||||
|
||||
Reference in New Issue
Block a user