feat(client): improve SDK packaging and registry config
This commit is contained in:
@@ -13,11 +13,11 @@ bool FileHelper::copyFileOverwrite(const QString &src, const QString &dst)
|
||||
{
|
||||
if (QFile::exists(dst))
|
||||
{
|
||||
if (!QFile::remove(dst))
|
||||
{
|
||||
qDebug() << "无法删除旧文件:" << dst;
|
||||
return false;
|
||||
}
|
||||
if (!QFile::remove(dst))
|
||||
{
|
||||
qDebug() << "Cannot remove old file:" << dst;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return QFile::copy(src, dst);
|
||||
}
|
||||
@@ -39,4 +39,4 @@ bool FileHelper::killProcess(const QString &exeName)
|
||||
process.start("taskkill /f /im " + exeName);
|
||||
process.waitForFinished(1000);
|
||||
return !isProcessRunning(exeName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user