Additional check

Additional check to make sure that the undocumented, unsupported and not recommended `-unsupported-allow-new-glibc` option is not abused to create results that are broken; see https://github.com/probonopd/linuxdeployqt/issues/340 for more information
This commit is contained in:
probonopd
2019-09-21 10:31:38 +00:00
committed by GitHub
parent 3f309970f7
commit 586aaf7111
+8
View File
@@ -455,6 +455,14 @@ int main(int argc, char **argv)
} }
} }
/* Additional check to make sure that the undocumented, unsupported and not recommended
* -unsupported-allow-new-glibc option is not abused to create results that are broken; see
* https://github.com/probonopd/linuxdeployqt/issues/340 for more information
* TODO: Add funtionality that would automatically bundle glibc fully and correctly in this case */
if(skipGlibcCheck == true){
if(QFileInfo(appDirPath + "/usr/share/doc/libc6/copyright").exists() == false) exit(1);
}
/* Copy in place */ /* Copy in place */
if(iconToBeUsed != ""){ if(iconToBeUsed != ""){
/* Check if there is already an icon and only if there is not, copy it to the AppDir. /* Check if there is already an icon and only if there is not, copy it to the AppDir.