Exit with error code if AppImage generation fails

This commit is contained in:
probonopd
2016-10-10 19:05:34 +02:00
parent 3a464ba922
commit b1f3506c36
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -1110,7 +1110,7 @@ bool checkAppImagePrerequisites(const QString &appDirPath)
return true;
}
void createAppImage(const QString &appDirPath)
int createAppImage(const QString &appDirPath)
{
QString appImagePath = appDirPath + ".AppImage";
@@ -1129,4 +1129,5 @@ void createAppImage(const QString &appDirPath)
}
QString appImageCommand = "AppImageAssistant '" + appDirPath +"' '" + appImagePath + "'";
int ret = system(appImageCommand.toUtf8().constData());
return ret;
}
+1 -1
View File
@@ -120,7 +120,7 @@ void runStrip(const QString &binaryPath);
void stripAppBinary(const QString &bundlePath);
QString findAppBinary(const QString &appDirPath);
QStringList findAppLibraries(const QString &appDirPath);
void createAppImage(const QString &appBundlePath);
int createAppImage(const QString &appBundlePath);
bool checkAppImagePrerequisites(const QString &appBundlePath);
#endif