[app] Package icons in a different way
Otherwise deployment from QtCreator may fail.
19
app/app.pro
|
@ -34,7 +34,7 @@ LIBS += \
|
|||
-lbz2 -lz -ldl
|
||||
|
||||
OTHER_FILES += \
|
||||
harbour-books.png \
|
||||
icons/harbour-books.svg \
|
||||
harbour-books.desktop \
|
||||
qml/*.qml \
|
||||
qml/images/* \
|
||||
|
@ -46,6 +46,7 @@ OTHER_FILES += \
|
|||
TARGET_DATA_DIR = /usr/share/harbour-books
|
||||
TARGET_DEFAULT_DATA_DIR = $$TARGET_DATA_DIR/data
|
||||
TARGET_ZLIBRARY_DATA_DIR = $$TARGET_DEFAULT_DATA_DIR
|
||||
TARGET_ICON_ROOT = /usr/share/icons/hicolor
|
||||
|
||||
core_data.files = \
|
||||
data/zlibrary/core/*.gz \
|
||||
|
@ -67,6 +68,22 @@ formats.files = data/formats/*
|
|||
formats.path = $$TARGET_DEFAULT_DATA_DIR/formats
|
||||
INSTALLS += formats
|
||||
|
||||
icon86.files = icons/86x86/harbour-books.png
|
||||
icon86.path = $$TARGET_ICON_ROOT/86x86/apps
|
||||
INSTALLS += icon86
|
||||
|
||||
icon108.files = icons/108x108/harbour-books.png
|
||||
icon108.path = $$TARGET_ICON_ROOT/108x108/apps
|
||||
INSTALLS += icon108
|
||||
|
||||
icon128.files = icons/128x128/harbour-books.png
|
||||
icon128.path = $$TARGET_ICON_ROOT/128x128/apps
|
||||
INSTALLS += icon128
|
||||
|
||||
icon256.files = icons/256x256/harbour-books.png
|
||||
icon256.path = $$TARGET_ICON_ROOT/256x256/apps
|
||||
INSTALLS += icon256
|
||||
|
||||
CONFIG += sailfishapp_i18n sailfishapp_i18n_idbased
|
||||
TRANSLATIONS += \
|
||||
translations/harbour-books.ts \
|
||||
|
|
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
@ -45,11 +45,6 @@ desktop-file-install --delete-original \
|
|||
--dir %{buildroot}%{_datadir}/applications \
|
||||
%{buildroot}%{_datadir}/applications/*.desktop
|
||||
|
||||
for x in 108 128 256 ; do \
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${x}x${x}/apps ; \
|
||||
cp %{name}-${x}.png %{buildroot}%{_datadir}/icons/hicolor/${x}x${x}/apps/%{name}.png ; \
|
||||
done
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/%{name}
|
||||
|
|