add icon and presplash support
This commit is contained in:
parent
8affd6f743
commit
b202143b0d
2 changed files with 17 additions and 0 deletions
|
@ -28,6 +28,12 @@ version.filename = %(source.dir)s/main.py
|
|||
# (list) Application requirements
|
||||
requirements = twisted,kivy
|
||||
|
||||
# (str) Presplash of the application
|
||||
#presplash.filename = %(source.dir)s/data/presplash.png
|
||||
|
||||
# (str) Icon of the application
|
||||
#icon.filename = %(source.dir)s/data/icon.png
|
||||
|
||||
#
|
||||
# Android specific
|
||||
#
|
||||
|
|
|
@ -369,6 +369,17 @@ class TargetAndroid(Target):
|
|||
for permission in permissions:
|
||||
build_cmd += ' --permission {0}'.format(permission)
|
||||
|
||||
# add presplash
|
||||
presplash = config.getdefault('app', 'presplash.filename', '')
|
||||
if presplash:
|
||||
build_cmd += ' --presplash {}'.format(join(self.buildozer.app_dir,
|
||||
presplash))
|
||||
|
||||
# add icon
|
||||
icon = config.getdefault('app', 'icon.filename', '')
|
||||
if icon:
|
||||
build_cmd += ' --icon {}'.format(join(self.buildozer.app_dir, icon))
|
||||
|
||||
# build only in debug right now.
|
||||
if self.build_mode == 'debug':
|
||||
build_cmd += ' debug'
|
||||
|
|
Loading…
Reference in a new issue