File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,12 @@ if (WIN32)
51
51
endif ()
52
52
53
53
set_target_properties (Telegram PROPERTIES AUTOMOC ON )
54
- target_prepare_qrc(Telegram)
54
+ if (LINUX)
55
+ # Do not repeat app name in path of a resource archive.
56
+ target_prepare_qrc(Telegram tresources.rcc)
57
+ else ()
58
+ target_prepare_qrc(Telegram)
59
+ endif ()
55
60
56
61
target_link_libraries (Telegram
57
62
PRIVATE
@@ -1528,7 +1533,11 @@ if (LINUX AND DESKTOP_APP_USE_PACKAGED)
1528
1533
include (GNUInstallDirs)
1529
1534
configure_file ("../lib/xdg/telegramdesktop.metainfo.xml.in" "${CMAKE_CURRENT_BINARY_DIR} /telegramdesktop.metainfo.xml" @ONLY)
1530
1535
generate_appdata_changelog(Telegram "${CMAKE_SOURCE_DIR} /changelog.txt" "${CMAKE_CURRENT_BINARY_DIR} /telegramdesktop.metainfo.xml" )
1531
- install (TARGETS Telegram RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR} " BUNDLE DESTINATION "${CMAKE_INSTALL_BINDIR} " )
1536
+ install (TARGETS Telegram
1537
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR} "
1538
+ BUNDLE DESTINATION "${CMAKE_INSTALL_BINDIR} "
1539
+ RESOURCE DESTINATION "${CMAKE_INSTALL_DATADIR} /TelegramDesktop"
1540
+ )
1532
1541
install (FILES "Resources/art/icon16.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR} /icons/hicolor/16x16/apps" RENAME "telegram.png" )
1533
1542
install (FILES "Resources/art/icon32.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR} /icons/hicolor/32x32/apps" RENAME "telegram.png" )
1534
1543
install (FILES "Resources/art/icon48.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR} /icons/hicolor/48x48/apps" RENAME "telegram.png" )
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ For license and copyright information please follow this link:
7
7
*/
8
8
#include " platform/linux/launcher_linux.h"
9
9
10
+ #include " base/base_file_utilities.h"
10
11
#include " core/crash_reports.h"
11
12
#include " core/update_checker.h"
12
13
#include " webview/platform/linux/webview_linux_webkit2gtk.h"
@@ -82,6 +83,8 @@ void Launcher::initHook() {
82
83
83
84
return qsl (QT_STRINGIFY (TDESKTOP_LAUNCHER_BASENAME) " .desktop" );
84
85
}());
86
+
87
+ base::RegisterResourceArchive (u" tresources.rcc" _q);
85
88
}
86
89
87
90
bool Launcher::launchUpdater (UpdaterLaunch action) {
Original file line number Diff line number Diff line change 27
27
// macOS Retina display support is working fine, others are not.
28
28
QCoreApplication::setAttribute (Qt::AA_DisableHighDpiScaling, false );
29
29
30
- base::RegisterBundledResources (u" Telegram.rcc" _q);
30
+ base::RegisterResourceArchive (u" Telegram.rcc" _q);
31
31
}
32
32
33
33
bool Launcher::launchUpdater (UpdaterLaunch action) {
You can’t perform that action at this time.
0 commit comments