GoCommandBridge: Don't copy files byte-by-byte

Makes this part of bridge deployment significantly faster
(factor ten or more).

Change-Id: I45c42a33964a782cc5d9bfb041f3a68c5b8c5e53
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2024-10-11 12:10:07 +02:00
parent d5891c7d2e
commit 2726fff07b

View File

@@ -124,7 +124,7 @@ Result FileAccess::deployAndInit(const FilePath &libExecPath, const FilePath &re
} }
qCDebug(faLog) << deco() << "Using temporary file:" << *tmpFile; qCDebug(faLog) << deco() << "Using temporary file:" << *tmpFile;
const auto dd = run({remoteRootPath.withNewPath("dd"), {"of=" + *tmpFile, "bs=1"}}, const auto dd = run({remoteRootPath.withNewPath("dd"), {"of=" + *tmpFile}},
*cmdBridgeFileData); *cmdBridgeFileData);
qCDebug(faLog) << deco() << "dd run"; qCDebug(faLog) << deco() << "dd run";