Skip to content

Commit

Permalink
show warning if convert is missing, change base project version
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed Sep 24, 2019
1 parent 87c048c commit e6456e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions androidprojectmodifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ QString AndroidProjectModifier::resizeImage(const QHash<QString, QString> 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();
}

Expand Down
2 changes: 1 addition & 1 deletion githelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit e6456e5

Please sign in to comment.