Advertisement
Guest User

buildozer spec

a guest
Aug 15th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.87 KB | None | 0 0
  1. [app]
  2.  
  3. # (str) Title of your application
  4. title = TestingApplication
  5.  
  6. # (str) Package name
  7. package.name = TestApp
  8.  
  9. # (str) Package domain (needed for android/ios packaging)
  10. package.domain = org.test
  11.  
  12. # (str) Source code where the main.py live
  13. source.dir = .
  14.  
  15. # (list) Source files to include (let empty to include all the files)
  16. source.include_exts = py,png,jpg,kv,atlas
  17.  
  18. # (list) List of inclusions using pattern matching
  19. #source.include_patterns = assets/*,images/*.png
  20.  
  21. # (list) Source files to exclude (let empty to not exclude anything)
  22. #source.exclude_exts = spec
  23.  
  24. # (list) List of directory to exclude (let empty to not exclude anything)
  25. #source.exclude_dirs = tests, bin
  26.  
  27. # (list) List of exclusions using pattern matching
  28. #source.exclude_patterns = license,images/*/*.jpg
  29.  
  30. # (str) Application versioning (method 1)
  31. version = 1.0
  32.  
  33. # (str) Application versioning (method 2)
  34. # version.regex = __version__ = ['"](.*)['"]
  35. # version.filename = %(source.dir)s/main.py
  36.  
  37. # (list) Application requirements
  38. # comma seperated e.g. requirements = sqlite3,kivy
  39. requirements = kivy,hostpython2
  40.  
  41. # (str) Custom source folders for requirements
  42. # Sets custom source for any requirements with recipes
  43. # requirements.source.kivy = ../../kivy
  44.  
  45. # (list) Garden requirements
  46. #garden_requirements =
  47.  
  48. # (str) Presplash of the application
  49. #presplash.filename = %(source.dir)s/data/presplash.png
  50.  
  51. # (str) Icon of the application
  52. #icon.filename = %(source.dir)s/data/icon.png
  53.  
  54. # (str) Supported orientation (one of landscape, portrait or all)
  55. orientation = all
  56.  
  57. # (list) List of service to declare
  58. #services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY
  59.  
  60. #
  61. # OSX Specific
  62. #
  63.  
  64. #
  65. # author = © Copyright Info
  66.  
  67. # change the major version of python used by the app
  68. osx.python_version = 3
  69.  
  70. # Kivy version to use
  71. osx.kivy_version = 1.9.1
  72.  
  73. #
  74. # Android specific
  75. #
  76.  
  77. # (bool) Indicate if the application should be fullscreen or not
  78. fullscreen = 0
  79.  
  80. # (string) Presplash background color (for new android toolchain)
  81. # Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
  82. # red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
  83. # darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
  84. # olive, purple, silver, teal.
  85. #android.presplash_color = #FFFFFF
  86.  
  87. # (list) Permissions
  88. #android.permissions = INTERNET
  89.  
  90. # (int) Android API to use
  91. #android.api = 19
  92.  
  93. # (int) Minimum API required
  94. #android.minapi = 9
  95.  
  96. # (int) Android SDK version to use
  97. #android.sdk = 20
  98.  
  99. # (str) Android NDK version to use
  100. #android.ndk = 9c
  101.  
  102. # (bool) Use --private data storage (True) or --dir public storage (False)
  103. #android.private_storage = True
  104.  
  105. # (str) Android NDK directory (if empty, it will be automatically downloaded.)
  106. #android.ndk_path =
  107.  
  108. # (str) Android SDK directory (if empty, it will be automatically downloaded.)
  109. #android.sdk_path =
  110.  
  111. # (str) ANT directory (if empty, it will be automatically downloaded.)
  112. #android.ant_path =
  113.  
  114. # (bool) If True, then skip trying to update the Android sdk
  115. # This can be useful to avoid excess Internet downloads or save time
  116. # when an update is due and you just want to test/build your package
  117. # android.skip_update = False
  118.  
  119. # (str) Android entry point, default is ok for Kivy-based app
  120. #android.entrypoint = org.renpy.android.PythonActivity
  121.  
  122. # (list) Pattern to whitelist for the whole project
  123. #android.whitelist =
  124.  
  125. # (str) Path to a custom whitelist file
  126. #android.whitelist_src =
  127.  
  128. # (str) Path to a custom blacklist file
  129. #android.blacklist_src =
  130.  
  131. # (list) List of Java .jar files to add to the libs so that pyjnius can access
  132. # their classes. Don't add jars that you do not need, since extra jars can slow
  133. # down the build process. Allows wildcards matching, for example:
  134. # OUYA-ODK/libs/*.jar
  135. #android.add_jars = foo.jar,bar.jar,path/to/more/*.jar
  136.  
  137. # (list) List of Java files to add to the android project (can be java or a
  138. # directory containing the files)
  139. #android.add_src =
  140.  
  141. # (list) Android AAR archives to add (currently works only with sdl2_gradle
  142. # bootstrap)
  143. #android.add_aars =
  144.  
  145. # (list) Gradle dependencies to add (currently works only with sdl2_gradle
  146. # bootstrap)
  147. #android.gradle_dependencies =
  148.  
  149. # (str) python-for-android branch to use, defaults to master
  150. #p4a.branch = stable
  151.  
  152. # (str) OUYA Console category. Should be one of GAME or APP
  153. # If you leave this blank, OUYA support will not be enabled
  154. #android.ouya.category = GAME
  155.  
  156. # (str) Filename of OUYA Console icon. It must be a 732x412 png image.
  157. #android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png
  158.  
  159. # (str) XML file to include as an intent filters in <activity> tag
  160. #android.manifest.intent_filters =
  161.  
  162. # (list) Android additionnal libraries to copy into libs/armeabi
  163. #android.add_libs_armeabi = libs/android/*.so
  164. #android.add_libs_armeabi_v7a = libs/android-v7/*.so
  165. #android.add_libs_x86 = libs/android-x86/*.so
  166. #android.add_libs_mips = libs/android-mips/*.so
  167.  
  168. # (bool) Indicate whether the screen should stay on
  169. # Don't forget to add the WAKE_LOCK permission if you set this to True
  170. #android.wakelock = False
  171.  
  172. # (list) Android application meta-data to set (key=value format)
  173. #android.meta_data =
  174.  
  175. # (list) Android library project to add (will be added in the
  176. # project.properties automatically.)
  177. #android.library_references =
  178.  
  179. # (str) Android logcat filters to use
  180. #android.logcat_filters = *:S python:D
  181.  
  182. # (bool) Copy library instead of making a libpymodules.so
  183. #android.copy_libs = 1
  184.  
  185. # (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86
  186. android.arch = armeabi-v7a
  187.  
  188. #
  189. # Python for android (p4a) specific
  190. #
  191.  
  192. # (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
  193. #p4a.source_dir =
  194.  
  195. # (str) The directory in which python-for-android should look for your own build recipes (if any)
  196. #p4a.local_recipes =
  197.  
  198. # (str) Filename to the hook for p4a
  199. #p4a.hook =
  200.  
  201. # (str) Bootstrap to use for android builds
  202. # p4a.bootstrap = sdl2
  203.  
  204.  
  205. #
  206. # iOS specific
  207. #
  208.  
  209. # (str) Path to a custom kivy-ios folder
  210. #ios.kivy_ios_dir = ../kivy-ios
  211.  
  212. # (str) Name of the certificate to use for signing the debug version
  213. # Get a list of available identities: buildozer ios list_identities
  214. #ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"
  215.  
  216. # (str) Name of the certificate to use for signing the release version
  217. #ios.codesign.release = %(ios.codesign.debug)s
  218.  
  219.  
  220. [buildozer]
  221.  
  222. # (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
  223. log_level = 2
  224.  
  225. # (int) Display warning if buildozer is run as root (0 = False, 1 = True)
  226. warn_on_root = 1
  227.  
  228. # (str) Path to build artifact storage, absolute or relative to spec file
  229. # build_dir = ./.buildozer
  230.  
  231. # (str) Path to build output (i.e. .apk, .ipa) storage
  232. # bin_dir = ./bin
  233.  
  234. # -----------------------------------------------------------------------------
  235. # List as sections
  236. #
  237. # You can define all the "list" as [section:key].
  238. # Each line will be considered as a option to the list.
  239. # Let's take [app] / source.exclude_patterns.
  240. # Instead of doing:
  241. #
  242. #[app]
  243. #source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
  244. #
  245. # This can be translated into:
  246. #
  247. #[app:source.exclude_patterns]
  248. #license
  249. #data/audio/*.wav
  250. #data/images/original/*
  251. #
  252.  
  253.  
  254. # -----------------------------------------------------------------------------
  255. # Profiles
  256. #
  257. # You can extend section / key with a profile
  258. # For example, you want to deploy a demo version of your application without
  259. # HD content. You could first change the title to add "(demo)" in the name
  260. # and extend the excluded directories to remove the HD content.
  261. #
  262. #[app@demo]
  263. #title = My Application (demo)
  264. #
  265. #[app:source.exclude_patterns@demo]
  266. #images/hd/*
  267. #
  268. # Then, invoke the command line with the "demo" profile:
  269. #
  270. #buildozer --profile demo android debug
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement