From e6456e56cd215c8714deb78cfa5965ee7926b5ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Chr=C3=A1steck=C3=BD?= Date: Tue, 24 Sep 2019 15:01:04 +0200 Subject: [PATCH] show warning if convert is missing, change base project version --- androidprojectmodifier.cpp | 4 ++++ githelper.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/androidprojectmodifier.cpp b/androidprojectmodifier.cpp index 116b8f2..5e7519b 100644 --- a/androidprojectmodifier.cpp +++ b/androidprojectmodifier.cpp @@ -146,6 +146,10 @@ QString AndroidProjectModifier::resizeImage(const QHash imageD convert.start("convert", QStringList() << imageData.value("path") << "-resize" << size + "x" + size << tmpFile.fileName()); convert.waitForFinished(); + if (convert.exitCode() != 0) { + qWarning() << "Warning: could not resize the image. Do you have the 'convert' utility installed?"; + } + return tmpFile.fileName(); } diff --git a/githelper.h b/githelper.h index e30777b..eee4ef0 100644 --- a/githelper.h +++ b/githelper.h @@ -26,7 +26,7 @@ class GitHelper private: const QString URL = "https://github.com/GoogleChromeLabs/svgomg-twa"; - const QString COMMIT = "8fb33ee8a5e53c3534db2f7730f9bb61bcd9f5dd"; + const QString COMMIT = "a5603e12141071fcffa60080c258b5c68b638af6"; void gitError(int status); };