diff --git a/LedOK/program/gentmpthread.cpp b/LedOK/program/gentmpthread.cpp index f45a3ba..bc13fa9 100644 --- a/LedOK/program/gentmpthread.cpp +++ b/LedOK/program/gentmpthread.cpp @@ -99,9 +99,13 @@ void GenTmpThread::run() { if(! password.isEmpty()) args << "-p"+password; QProcess::execute("7z.exe", args); #else - QStringList args{"-r", zip_file, dstDir}; - if(! password.isEmpty()) args << "-P "+password; - QProcess::execute("zip", args); + QStringList args{"-r", zip_file}; + if(! password.isEmpty()) args << "-P" << password; + args += QDir(dstDir).entryList(QDir::AllEntries | QDir::NoDotAndDotDot); + QProcess process; + process.setWorkingDirectory(dstDir); + process.start("zip", args); + process.waitForFinished(); #endif } }