1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Install icons to standard locations for linux desktop

Also reorganize icons in subdirectories indicating size.

See the Icon Theme Specification:
https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#install_icons
This commit is contained in:
Juhani Numminen 2019-07-18 11:09:08 +03:00
parent 9a51c55402
commit c9de855dd8
10 changed files with 11 additions and 11 deletions

View file

@ -27,6 +27,6 @@ python3 -m pythonforandroid.toolchain apk \
--version ${version} \ --version ${version} \
--orientation sensor \ --orientation sensor \
--color=always \ --color=always \
--icon ${tmpdir}/data/images/misc/pysol01.png \ --icon ${tmpdir}/data/images/icons/48x48/pysol.png \
--presplash ${tmpdir}/data/images/misc/pysol06.png \ --presplash ${tmpdir}/data/images/icons/1024x1024/pysol.png \
--copy-libs --copy-libs

View file

@ -52,8 +52,8 @@ python3 -m pythonforandroid.toolchain apk \
--version ${version} \ --version ${version} \
--orientation sensor \ --orientation sensor \
--color=always \ --color=always \
--icon ${tmpdir}/data/images/misc/pysol01.png \ --icon ${tmpdir}/data/images/icons/48x48/pysol.png \
--presplash ${tmpdir}/data/images/misc/pysol06.png \ --presplash ${tmpdir}/data/images/icons/1024x1024/pysol.png \
--copy-libs --copy-libs
# keystore options (instead environment vars): # keystore options (instead environment vars):

View file

@ -39,8 +39,8 @@ python3 -m pythonforandroid.toolchain apk \
--version ${version} \ --version ${version} \
--orientation sensor \ --orientation sensor \
--color=always \ --color=always \
--icon ${tmpdir}/data/images/misc/pysol01.png \ --icon ${tmpdir}/data/images/icons/48x48/pysol.png \
--presplash ${tmpdir}/data/images/misc/pysol06.png \ --presplash ${tmpdir}/data/images/icons/1024x1024/pysol.png \
--copy-libs --copy-libs
# python3 -m pythonforandroid.toolchain apk # python3 -m pythonforandroid.toolchain apk

View file

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View file

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View file

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View file

@ -7,4 +7,4 @@ Terminal=false
Type=Application Type=Application
Categories=Game;CardGame; Categories=Game;CardGame;
Keywords=solitaire;patience;cards;pysolfc;klondike; Keywords=solitaire;patience;cards;pysolfc;klondike;
Icon=/usr/share/icons/pysol01.png Icon=pysol

View file

@ -1168,7 +1168,7 @@ class LMenu(ActionView, LBase):
class MyActionPrev(ActionPrevious, LBase): class MyActionPrev(ActionPrevious, LBase):
pass pass
kw['app_icon'] = 'data/images/misc/pysol01.png' kw['app_icon'] = 'data/images/icons/48x48/pysol.png'
kw['with_previous'] = prev kw['with_previous'] = prev
kw['size_hint'] = (.01, 1) kw['size_hint'] = (.01, 1)
self.ap = MyActionPrev(**kw) self.ap = MyActionPrev(**kw)

View file

@ -45,9 +45,9 @@ for d in ddirs:
if os.name == 'posix': if os.name == 'posix':
data_files.append(('share/pixmaps', ['data/pysol.xbm', 'data/pysol.xpm'])) data_files.append(('share/pixmaps', ['data/pysol.xbm', 'data/pysol.xpm']))
data_files.append(('share/icons', for size in os.listdir('data/images/icons'):
['data/images/misc/pysol01.png', data_files.append(('share/icons/hicolor/%s/apps' % size,
'data/images/misc/pysol02.png', ])) ['data/images/icons/%s/pysol.png' % size]))
for mofile in glob('locale/*/*/*.mo'): for mofile in glob('locale/*/*/*.mo'):
data_files.append(('share/' + os.path.dirname(mofile), [mofile])) data_files.append(('share/' + os.path.dirname(mofile), [mofile]))
data_files.append((data_dir, ['data/pysolfc.glade'])) data_files.append((data_dir, ['data/pysolfc.glade']))