Rewrite 7z uncompressing to work on all supported platforms

On Windows we ship 7za.exe in our binaries.
On MacOS we do the same, but the executable needs to be called with the full path.
On Linux we don't ship anything but assume it to be available from the distribution.
This commit is contained in:
Roland Rossgotterer
2018-11-20 14:12:19 +01:00
committed by Klaus Basan
parent 2843e20d54
commit 659b78832e
4 changed files with 75 additions and 68 deletions

View File

@@ -66,7 +66,7 @@ namespace BlackMiscTest
const QString td = tempDir.path();
const QString compressedFile(CFileUtils::appendFilePaths(CDirectoryUtils::shareTestDirectory(), "countries.json.gz"));
const QString unCompressedFile(CFileUtils::appendFilePaths(td, "countries.json"));
const bool c = CCompressUtils::zip7Uncompress(compressedFile, td, true);
const bool c = CCompressUtils::zip7Uncompress(compressedFile, td);
QVERIFY2(c, "Uncompressing failed");