Copy only when there is .native_image folder (#474)
author최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Mon, 24 Jul 2023 04:28:12 +0000 (13:28 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 24 Jul 2023 04:28:12 +0000 (13:28 +0900)
NativeLauncher/tool/tac_installer.cc

index 820ef5a..b425bbb 100644 (file)
@@ -121,7 +121,7 @@ static bool copyAssemblyCreateSymlink(std::string binPath, std::string tacDir, s
                                                nuget_restoration = true;
                                                break;
                                        }
-                                       if (!copyFile(concatPath(binNiPath, niFile), concatPath(tac_version_dir, niFile))) {
+                                       if (!copyFile(concatPath(binNiPath, niFile), concatPath(tac_version_dir, niFile)) && exist(binNiPath)) {
                                                _ERR("Failed to copy of %s", niFile.c_str());
                                        }
                                }