Advertisement
muntoo

buildozer.spec

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