mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Build scripts updated for Xcode projects from GYP, MacStore build tested.
This commit is contained in:
@@ -92,7 +92,12 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) {
|
||||
QByteArray d(QFile::encodeName(QDir(cWorkingDir()).absolutePath()));
|
||||
char h[33] = { 0 };
|
||||
hashMd5Hex(d.constData(), d.size(), h);
|
||||
#ifndef OS_MAC_STORE
|
||||
_localServerName = psServerPrefix() + h + '-' + cGUIDStr();
|
||||
#else // OS_MAC_STORE
|
||||
h[4] = 0; // use only first 4 chars
|
||||
_localServerName = psServerPrefix() + h;
|
||||
#endif // OS_MAC_STORE
|
||||
|
||||
connect(&_localSocket, SIGNAL(connected()), this, SLOT(socketConnected()));
|
||||
connect(&_localSocket, SIGNAL(disconnected()), this, SLOT(socketDisconnected()));
|
||||
|
Reference in New Issue
Block a user