summarylogtreecommitdiffstats
path: root/quickviewer-1.1.8-main-projectfile-changes.patch
blob: 1f41caa29c6213acfb29bd2bb7b0fc53e5dce739 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- quickviewer/QuickViewer/QuickViewer.pro.orig	2020-06-15 20:27:13.318289440 -0700
+++ quickviewer/QuickViewer/QuickViewer.pro	2020-06-15 20:27:16.061622746 -0700
@@ -437,22 +437,21 @@
 
 # not portable, install into /usr/local/bin
 linux : !CONFIG(debug, debug|release) : !contains(DEFINES, QV_PORTABLE) {
-    APPDIR = QuickViewer-$${VERSION}-$${TARGET_ARCH}.AppDir
-    APPIMAGE = QuickViewer-$${VERSION}-$${TARGET_ARCH}.AppImage
-    MY_DEFAULT_INSTALL = ../../$${APPDIR}
+    target.path = $${QV_BIN_PATH}
 
-    install_target.files = $${DESTDIR}/QuickViewer
-    install_target.path = $${QV_BIN_PATH}
-
-    install_libs.files = $${DESTDIR}/../lib/libfileloader.so.1 $${DESTDIR}/../lib/lib7z.so
-    install_libs.path = $${QV_LIB_PATH}
+    install_desktop.files = $${PWD}/QuickViewer.desktop
+    install_desktop.path = $${QV_SHARED_PATH}/applications
 
+    install_mainicon.files = $${PWD}/../docs/quickviewer.png
+    install_mainicon.path = $${QV_SHARED_PATH}/icons/hicolor/512x512/apps
 
+    install_deploy_files.files = $${PWD}/../README.md
     install_deploy_files.path = $${QV_SHARED_PATH}/QuickViewer
-    install_deploy_files.files = $${PWD}/../README.md $${PWD}/../LICENSE
-    install_deploy_files.depends = install_install_target install_install_libs
 
-    install_translations.path = $$[QT_INSTALL_TRANSLATIONS]
+    install_license.files = $${PWD}/../LICENSE
+    install_license.path = $${QV_SHARED_PATH}/licenses/quickviewer
+
+    install_translations.path = $${QV_SHARED_PATH}/QuickViewer/translations
     install_translations.files = \
         $${PWD}/translations/languages.ini \
         $${PWD}/translations/quickviewer_ja.qm \
@@ -478,7 +477,7 @@
         ../AssociateFilesWithQuickViewer/icons/qv_tiff.ico \
         ../AssociateFilesWithQuickViewer/icons/qv_webp.ico \
 
-    INSTALLS += install_target install_libs install_deploy_files install_translations install_assoc_icons
+    INSTALLS += target install_desktop install_mainicon install_deploy_files install_license install_translations install_assoc_icons
 }
 
 macos : !CONFIG(debug, debug|release) {