deploy_tool qt.conf for MacOS fix

This commit is contained in:
2021-05-06 13:27:04 +03:00
parent 0fcb4e5c4b
commit acbb0ee84a

View File

@@ -739,10 +739,12 @@ int main(int argc, char * argv[]) {
if (!ldd.isEmpty() || !readelf.isEmpty()) { // qt.conf for Linux
PIFile qtc(qt_conf_dir + "qt.conf", PIIODevice::ReadWrite);
qtc.clear();
PIString pp = PIDir(qt_conf_dir).relative(qt_plugins_dir);
PIString pp = PIDir(qt_conf_dir).relative(qt_plugins_dir), lp = "lang/";
if (!pp.isEmpty() && !pp.endsWith('/')) pp.append('/');
//piCout << pp;
qtc << "[Paths]\n\tPlugins = " << pp << "\n\tTranslations = lang/\n";
if (!otool.isEmpty())
lp.prepend("../Resources");
qtc << "[Paths]\n\tPlugins = " << pp << "\n\tTranslations = " << lp << "\n";
}
}
}