mirror of https://github.com/WerWolv/ImHex
build: Fix version stripping issues
This commit is contained in:
parent
a4ee590875
commit
5cbd53ae7a
|
|
@ -351,9 +351,8 @@ macro(createPackage)
|
||||||
DEPENDS ${VERSIONLESS_LIBWINPTHREAD}
|
DEPENDS ${VERSIONLESS_LIBWINPTHREAD}
|
||||||
)
|
)
|
||||||
|
|
||||||
# Install the generated file
|
|
||||||
install(FILES ${VERSIONLESS_LIBWINPTHREAD}
|
install(FILES ${VERSIONLESS_LIBWINPTHREAD}
|
||||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}"
|
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -96,9 +96,8 @@ int main(int argc, char* argv[]) {
|
||||||
std::filesystem::path inputPath(argv[1]);
|
std::filesystem::path inputPath(argv[1]);
|
||||||
std::filesystem::path outputPath(argv[2]);
|
std::filesystem::path outputPath(argv[2]);
|
||||||
|
|
||||||
std::filesystem::copy(inputPath, outputPath);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
std::filesystem::copy(inputPath, outputPath, std::filesystem::copy_options::overwrite_existing);
|
||||||
nukeVersionResource(outputPath.c_str());
|
nukeVersionResource(outputPath.c_str());
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
fprintf(stderr, "%s", e.what());
|
fprintf(stderr, "%s", e.what());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue