|
@ -1116,8 +1116,9 @@ void createAppImage(const QString &appDirPath) |
|
|
QFile appImage(appImagePath); |
|
|
QFile appImage(appImagePath); |
|
|
LogDebug() << "appImageName:" << appImagePath; |
|
|
LogDebug() << "appImageName:" << appImagePath; |
|
|
|
|
|
|
|
|
if (appImage.exists() && alwaysOwerwriteEnabled) |
|
|
if (appImage.exists() && alwaysOwerwriteEnabled){ |
|
|
appImage.remove(); |
|
|
appImage.remove(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (appImage.exists()) { |
|
|
if (appImage.exists()) { |
|
|
LogError() << "AppImage already exists, skipping .AppImage creation for" << appImage.fileName(); |
|
|
LogError() << "AppImage already exists, skipping .AppImage creation for" << appImage.fileName(); |
|
@ -1157,10 +1158,12 @@ void createAppImage(const QString &appDirPath) |
|
|
// AppImageAssistant doesn't always give nonzero error codes, so we check for the presence of the AppImage file
|
|
|
// AppImageAssistant doesn't always give nonzero error codes, so we check for the presence of the AppImage file
|
|
|
// This should eventually be fixed in AppImageAssistant
|
|
|
// This should eventually be fixed in AppImageAssistant
|
|
|
if (!QFile(appDirPath).exists()) { |
|
|
if (!QFile(appDirPath).exists()) { |
|
|
if(appImageAssistant.readAllStandardOutput().isEmpty() == false) |
|
|
if(appImageAssistant.readAllStandardOutput().isEmpty() == false) { |
|
|
LogError() << "AppImageAssistant:" << appImageAssistant.readAllStandardOutput(); |
|
|
LogError() << "AppImageAssistant:" << appImageAssistant.readAllStandardOutput(); |
|
|
if(appImageAssistant.readAllStandardError().isEmpty() == false) |
|
|
} |
|
|
|
|
|
if(appImageAssistant.readAllStandardError().isEmpty() == false){ |
|
|
LogError() << "AppImageAssistant:" << appImageAssistant.readAllStandardError(); |
|
|
LogError() << "AppImageAssistant:" << appImageAssistant.readAllStandardError(); |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
LogNormal() << "Created AppImage at" << appImagePath; |
|
|
LogNormal() << "Created AppImage at" << appImagePath; |
|
|
} |
|
|
} |
|
|