jayyu3333

buidozer specs file

Mar 2nd, 2022 (edited)
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 10.55 KB | None | 0 0
  1.  
  2. [app]
  3.  
  4. # (str) Title of your application
  5. title = My Application
  6.  
  7. # (str) Package name
  8. package.name = myapp
  9.  
  10. # (str) Package domain (needed for android/ios packaging)
  11. package.domain = org.test
  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 separated e.g. requirements = sqlite3,kivy
  40. requirements = = python3,kivy==master,kivymd,requests,urllib3,pillow
  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 = image.jpg
  51.  
  52. # (str) Icon of the application
  53. #icon.filename = image.jpg
  54.  
  55. # (str) Supported orientation (one of landscape, sensorLandscape, 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 = 1
  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) Target Android API, should be as high as possible.
  92. android.api = 27
  93.  
  94. # (int) Minimum API your APK will support.
  95. android.minapi = 21
  96.  
  97. # (int) Android SDK version to use
  98. android.sdk = 20
  99.  
  100. # (str) Android NDK version to use
  101. android.ndk = 19b
  102.  
  103. # (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
  104. android.ndk_api = 21
  105.  
  106. # (bool) Use --private data storage (True) or --dir public storage (False)
  107. #android.private_storage = True
  108.  
  109. # (str) Android NDK directory (if empty, it will be automatically downloaded.)
  110. #android.ndk_path =
  111.  
  112. # (str) Android SDK directory (if empty, it will be automatically downloaded.)
  113. #android.sdk_path =
  114.  
  115. # (str) ANT directory (if empty, it will be automatically downloaded.)
  116. #android.ant_path =
  117.  
  118. # (bool) If True, then skip trying to update the Android sdk
  119. # This can be useful to avoid excess Internet downloads or save time
  120. # when an update is due and you just want to test/build your package
  121. android.skip_update = False
  122.  
  123. # (bool) If True, then automatically accept SDK license
  124. # agreements. This is intended for automation only. If set to False,
  125. # the default, you will be shown the license when first running
  126. # buildozer.
  127. android.accept_sdk_license = True
  128.  
  129. # (str) Android entry point, default is ok for Kivy-based app
  130. #android.entrypoint = org.renpy.android.PythonActivity
  131.  
  132. # (str) Android app theme, default is ok for Kivy-based app
  133. # android.apptheme = "@android:style/Theme.NoTitleBar"
  134.  
  135. # (list) Pattern to whitelist for the whole project
  136. #android.whitelist =
  137.  
  138. # (str) Path to a custom whitelist file
  139. #android.whitelist_src =
  140.  
  141. # (str) Path to a custom blacklist file
  142. #android.blacklist_src =
  143.  
  144. # (list) List of Java .jar files to add to the libs so that pyjnius can access
  145. # their classes. Don't add jars that you do not need, since extra jars can slow
  146. # down the build process. Allows wildcards matching, for example:
  147. # OUYA-ODK/libs/*.jar
  148. #android.add_jars = foo.jar,bar.jar,path/to/more/*.jar
  149.  
  150. # (list) List of Java files to add to the android project (can be java or a
  151. # directory containing the files)
  152. #android.add_src =
  153.  
  154. # (list) Android AAR archives to add (currently works only with sdl2_gradle
  155. # bootstrap)
  156. #android.add_aars =
  157.  
  158. # (list) Gradle dependencies to add (currently works only with sdl2_gradle
  159. # bootstrap)
  160. #android.gradle_dependencies =
  161.  
  162. # (list) add java compile options
  163. # this can for example be necessary when importing certain java libraries using the 'android.gradle_dependencies' option
  164. # see https://developer.android.com/studio/write/java8-support for further information
  165. # android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8"
  166.  
  167. # (list) Gradle repositories to add {can be necessary for some android.gradle_dependencies}
  168. # please enclose in double quotes
  169. # e.g. android.gradle_repositories = "maven { url 'https://kotlin.bintray.com/ktor' }"
  170. #android.add_gradle_repositories =
  171.  
  172. # (list) packaging options to add
  173. # see https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
  174. # can be necessary to solve conflicts in gradle_dependencies
  175. # please enclose in double quotes
  176. # e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'"
  177. #android.add_gradle_repositories =
  178.  
  179. # (list) Java classes to add as activities to the manifest.
  180. #android.add_activities = com.example.ExampleActivity
  181.  
  182. # (str) OUYA Console category. Should be one of GAME or APP
  183. # If you leave this blank, OUYA support will not be enabled
  184. #android.ouya.category = GAME
  185.  
  186. # (str) Filename of OUYA Console icon. It must be a 732x412 png image.
  187. #android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png
  188.  
  189. # (str) XML file to include as an intent filters in <activity> tag
  190. #android.manifest.intent_filters =
  191.  
  192. # (str) launchMode to set for the main activity
  193. #android.manifest.launch_mode = standard
  194.  
  195. # (list) Android additional libraries to copy into libs/armeabi
  196. #android.add_libs_armeabi = libs/android/*.so
  197. #android.add_libs_armeabi_v7a = libs/android-v7/*.so
  198. #android.add_libs_arm64_v8a = libs/android-v8/*.so
  199. #android.add_libs_x86 = libs/android-x86/*.so
  200. #android.add_libs_mips = libs/android-mips/*.so
  201.  
  202. # (bool) Indicate whether the screen should stay on
  203. # Don't forget to add the WAKE_LOCK permission if you set this to True
  204. #android.wakelock = False
  205.  
  206. # (list) Android application meta-data to set (key=value format)
  207. #android.meta_data =
  208.  
  209. # (list) Android library project to add (will be added in the
  210. # project.properties automatically.)
  211. #android.library_references =
  212.  
  213. # (list) Android shared libraries which will be added to AndroidManifest.xml using <uses-library> tag
  214. #android.uses_library =
  215.  
  216. # (str) Android logcat filters to use
  217. #android.logcat_filters = *:S python:D
  218.  
  219. # (bool) Copy library instead of making a libpymodules.so
  220. #android.copy_libs = 1
  221.  
  222. # (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
  223. android.arch = armeabi-v7a
  224.  
  225. # (int) overrides automatic versionCode computation (used in build.gradle)
  226. # this is not the same as app version and should only be edited if you know what you're doing
  227. # android.numeric_version = 1
  228.  
  229. #
  230. # Python for android (p4a) specific
  231. #
  232.  
  233. # (str) python-for-android fork to use, defaults to upstream (kivy)
  234. #p4a.fork = kivy
  235.  
  236. # (str) python-for-android branch to use, defaults to master
  237. p4a.branch = develop
  238.  
  239. # (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
  240. #p4a.source_dir = p4a
  241.  
  242. # (str) The directory in which python-for-android should look for your own build recipes (if any)
  243. #p4a.local_recipes =
  244.  
  245. # (str) Filename to the hook for p4a
  246. #p4a.hook =
  247.  
  248. # (str) Bootstrap to use for android builds
  249. #p4a.bootstrap = sdl2
  250.  
  251. # (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
  252. #p4a.port =
  253.  
  254.  
  255. #
  256. # iOS specific
  257. #
  258.  
  259. # (str) Path to a custom kivy-ios folder
  260. #ios.kivy_ios_dir = ../kivy-ios
  261. # Alternately, specify the URL and branch of a git checkout:
  262. ios.kivy_ios_url = https://github.com/kivy/kivy-ios
  263. ios.kivy_ios_branch = master
  264.  
  265. # Another platform dependency: ios-deploy
  266. # Uncomment to use a custom checkout
  267. #ios.ios_deploy_dir = ../ios_deploy
  268. # Or specify URL and branch
  269. ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
  270. ios.ios_deploy_branch = 1.7.0
  271.  
  272. # (str) Name of the certificate to use for signing the debug version
  273. # Get a list of available identities: buildozer ios list_identities
  274. #ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"
  275.  
  276. # (str) Name of the certificate to use for signing the release version
  277. #ios.codesign.release = %(ios.codesign.debug)s
  278.  
  279.  
  280. [buildozer]
  281.  
  282. # (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
  283. log_level = 2
  284.  
  285. # (int) Display warning if buildozer is run as root (0 = False, 1 = True)
  286. warn_on_root = 1
  287.  
  288. # (str) Path to build artifact storage, absolute or relative to spec file
  289. build_dir = ./.buildozer
  290.  
  291. # (str) Path to build output (i.e. .apk, .ipa) storage
  292. bin_dir = ./bin
  293.  
  294. #    -----------------------------------------------------------------------------
  295. #    List as sections
  296. #
  297. #    You can define all the "list" as [section:key].
  298. #    Each line will be considered as a option to the list.
  299. #    Let's take [app] / source.exclude_patterns.
  300. #    Instead of doing:
  301. #
  302. #[app]
  303. #source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
  304. #
  305. #    This can be translated into:
  306. #
  307. #[app:source.exclude_patterns]
  308. #license
  309. #data/audio/*.wav
  310. #data/images/original/*
  311. #
  312.  
  313.  
  314. #    -----------------------------------------------------------------------------
  315. #    Profiles
  316. #
  317. #    You can extend section / key with a profile
  318. #    For example, you want to deploy a demo version of your application without
  319. #    HD content. You could first change the title to add "(demo)" in the name
  320. #    and extend the excluded directories to remove the HD content.
  321. #
  322. #[app@demo]
  323. #title = My Application (demo)
  324. #
  325. #[app:source.exclude_patterns@demo]
  326. #images/hd/*
  327. #
  328. #    Then, invoke the command line with the "demo" profile:
  329. #
  330. #buildozer --profile demo android debug
  331.  
Add Comment
Please, Sign In to add comment