- fix: "project name".exe.manifest is auto removed when build the project.

This commit is contained in:
Roy Qu 2024-03-27 17:45:48 +08:00
parent c941ae4cf8
commit 6526e8caec
2 changed files with 2 additions and 5 deletions

View File

@ -98,6 +98,7 @@ Red Panda C++ Version 2.27
- enhancement: Adjust function tip pos to prevent it from run outside the right window edge. - enhancement: Adjust function tip pos to prevent it from run outside the right window edge.
- enhancement: Open ".def" (Module definition file) file in editor when double click it in the project view. - enhancement: Open ".def" (Module definition file) file in editor when double click it in the project view.
- enhancement: When a dll project has .def file, use it when generating the dll file. - enhancement: When a dll project has .def file, use it when generating the dll file.
- fix: "project name".exe.manifest is auto removed when build the project.
Red Panda C++ Version 2.26 Red Panda C++ Version 2.26
- enhancement: Code suggestion for embedded std::vectors. - enhancement: Code suggestion for embedded std::vectors.

View File

@ -1543,9 +1543,6 @@ void Project::buildPrivateResource()
QFile::remove(resFile); QFile::remove(resFile);
mOptions.privateResource = ""; mOptions.privateResource = "";
} }
// if fileExists(Res) then
// FileSetDate(Res, DateTimeToFileDate(Now)); // fix the "Clock skew detected" warning ;)
// create XP manifest // create XP manifest
if (mOptions.supportXPThemes) { if (mOptions.supportXPThemes) {
QStringList content; QStringList content;
@ -1575,8 +1572,7 @@ void Project::buildPrivateResource()
content.append("</dependency>"); content.append("</dependency>");
content.append("</assembly>"); content.append("</assembly>");
stringsToFile(content,executable() + ".Manifest"); stringsToFile(content,executable() + ".Manifest");
} else if (fileExists(executable() + ".Manifest")) }
QFile::remove(executable() + ".Manifest");
// create private header file // create private header file
QString hFile = changeFileExt(rcFile, H_EXT); QString hFile = changeFileExt(rcFile, H_EXT);