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
|
@ -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
|
||||||
|
|
|
@ -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):
|
||||||
|
|
|
@ -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
|
||||||
|
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
6
setup.py
|
@ -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']))
|
||||||
|
|