Mercurial > libervia-desktop-kivy
annotate buildozer.spec @ 497:232a723aae45
core: set log level according to configuration
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 02 Oct 2023 17:20:13 +0200 |
parents | 83c67b093350 |
children |
rev | line source |
---|---|
61 | 1 [app] |
2 | |
3 # (str) Title of your application | |
4 title = Cagou | |
5 | |
6 # (str) Package name | |
7 package.name = cagou | |
8 | |
9 # (str) Package domain (needed for android/ios packaging) | |
462
83c67b093350
android: renamed package from org.salutatoi.cagou to org.libervia.cagou
Goffi <goffi@goffi.org>
parents:
240
diff
changeset
|
10 package.domain = org.libervia |
61 | 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) | |
140
8f33a7c09214
build (buildozer.spec): updated buildozer spec to build with new toolchain (and code evolution since last build)
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
16 source.include_exts = py,png,jpg,kv,atlas,conf,json,svg,ttf |
61 | 17 # FIXME: check if we can do sat.conf only, without every .conf |
18 | |
19 # (list) List of inclusions using pattern matching | |
20 #source.include_patterns = assets/*,images/*.png | |
140
8f33a7c09214
build (buildozer.spec): updated buildozer spec to build with new toolchain (and code evolution since last build)
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
21 source.include_patterns = media,cagou,android,bin,service |
61 | 22 |
23 # (list) Source files to exclude (let empty to not exclude anything) | |
24 #source.exclude_exts = spec | |
25 | |
26 # (list) List of directory to exclude (let empty to not exclude anything) | |
140
8f33a7c09214
build (buildozer.spec): updated buildozer spec to build with new toolchain (and code evolution since last build)
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
27 source.exclude_dirs = env |
61 | 28 |
29 # (list) List of exclusions using pattern matching | |
140
8f33a7c09214
build (buildozer.spec): updated buildozer spec to build with new toolchain (and code evolution since last build)
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
30 source.exclude_patterns = |
61 | 31 |
32 # (str) Application versioning (method 1) | |
33 version = 0.1 | |
34 | |
35 # (str) Application versioning (method 2) | |
36 # version.regex = __version__ = ['"](.*)['"] | |
37 # version.filename = %(source.dir)s/main.py | |
38 | |
39 # (list) Application requirements | |
40 # comma seperated e.g. requirements = sqlite3,kivy | |
224
ee4d7e923e92
build (buildozer.spec): added some missing dependencies
Goffi <goffi@goffi.org>
parents:
209
diff
changeset
|
41 requirements = hostpython2, kivy, sqlite3, openssl, pyopenssl, automat, attr, twisted, wokkel, hg+https://repos.goffi.org/sat#egg=sat, sat_tmp, pil, lxml, pyxdg, markdown, html2text, python-dateutil, pycrypto, plyer, android, python-potr, shortuuid, cryptography, babel |
140
8f33a7c09214
build (buildozer.spec): updated buildozer spec to build with new toolchain (and code evolution since last build)
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
42 # below are requirements for dev |
224
ee4d7e923e92
build (buildozer.spec): added some missing dependencies
Goffi <goffi@goffi.org>
parents:
209
diff
changeset
|
43 # requirements = hostpython2, kivy, urwid, sqlite3, openssl, pyopenssl, automat, attr, twisted, wokkel, pudb, hg+http://10.0.0.1:8000#egg=sat, sat_tmp, pil, lxml, pyxdg, markdown, html2text, python-dateutil, pycrypto, plyer, android, python-potr, shortuuid, cryptography, babel |
140
8f33a7c09214
build (buildozer.spec): updated buildozer spec to build with new toolchain (and code evolution since last build)
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
44 |
61 | 45 |
46 # (str) Custom source folders for requirements | |
47 # Sets custom source for any requirements with recipes | |
48 # requirements.source.kivy = ../../kivy | |
49 | |
50 # (list) Garden requirements | |
191
fda3f22aa3ce
install: added modermenu to requirements
Goffi <goffi@goffi.org>
parents:
182
diff
changeset
|
51 garden_requirements = contextmenu, modernmenu |
61 | 52 |
53 # (str) Presplash of the application | |
91
520a9e1a659b
use of cagou_profile_bleu as Cagou's main icon
Goffi <goffi@goffi.org>
parents:
74
diff
changeset
|
54 presplash.filename = %(source.dir)s/media/icons/muchoslava/png/cagou_profil_bleu_512.png |
61 | 55 |
56 # (str) Icon of the application | |
91
520a9e1a659b
use of cagou_profile_bleu as Cagou's main icon
Goffi <goffi@goffi.org>
parents:
74
diff
changeset
|
57 icon.filename = %(source.dir)s/media/icons/muchoslava/png/cagou_profil_bleu_96.png |
61 | 58 |
59 # (str) Supported orientation (one of landscape, portrait or all) | |
209
5e92bc937778
install (buildozer): added READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions for file sharing
Goffi <goffi@goffi.org>
parents:
191
diff
changeset
|
60 # FIXME: all is not working at the moment, it's changing orientation even when blocked in Android |
5e92bc937778
install (buildozer): added READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions for file sharing
Goffi <goffi@goffi.org>
parents:
191
diff
changeset
|
61 # and it crashed as soon as we move to landscade, without error message |
61 | 62 orientation = portrait |
63 | |
64 # (list) List of service to declare | |
65 #services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY | |
140
8f33a7c09214
build (buildozer.spec): updated buildozer spec to build with new toolchain (and code evolution since last build)
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
66 services = backend:backend/main.py |
61 | 67 |
68 # | |
69 # OSX Specific | |
70 # | |
71 | |
72 # | |
73 # author = © Copyright Info | |
74 | |
75 # | |
76 # Android specific | |
77 # | |
78 | |
79 # (bool) Indicate if the application should be fullscreen or not | |
80 fullscreen = 1 | |
81 | |
82 # (list) Permissions | |
209
5e92bc937778
install (buildozer): added READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions for file sharing
Goffi <goffi@goffi.org>
parents:
191
diff
changeset
|
83 android.permissions = INTERNET, ACCESS_NETWORK_STATE, VIBRATE, RECORD_AUDIO, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE |
61 | 84 |
85 # (int) Android API to use | |
86 #android.api = 19 | |
87 | |
88 # (int) Minimum API required | |
89 #android.minapi = 9 | |
90 | |
91 # (int) Android SDK version to use | |
92 #android.sdk = 20 | |
93 | |
94 # (str) Android NDK version to use | |
95 #android.ndk = 9c | |
96 | |
97 # (bool) Use --private data storage (True) or --dir public storage (False) | |
98 #android.private_storage = True | |
99 | |
100 # (str) Android NDK directory (if empty, it will be automatically downloaded.) | |
101 #android.ndk_path = | |
102 | |
103 # (str) Android SDK directory (if empty, it will be automatically downloaded.) | |
104 #android.sdk_path = | |
105 | |
106 # (str) ANT directory (if empty, it will be automatically downloaded.) | |
107 #android.ant_path = | |
108 | |
109 # (str) python-for-android git clone directory (if empty, it will be automatically cloned from github) | |
110 # we use our own p4a and mount in root dir on docker image | |
140
8f33a7c09214
build (buildozer.spec): updated buildozer spec to build with new toolchain (and code evolution since last build)
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
111 # android.p4a_dir = /python-for-android-old |
61 | 112 |
113 # (str) The directory in which python-for-android should look for your own build recipes (if any) | |
114 #p4a.local_recipes = | |
115 | |
116 # (list) python-for-android whitelist | |
117 #android.p4a_whitelist = | |
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 = False | |
123 | |
124 # (str) Bootstrap to use for android builds (android_new only) | |
125 # android.bootstrap = sdl2 | |
126 | |
127 # (str) Android entry point, default is ok for Kivy-based app | |
128 #android.entrypoint = org.renpy.android.PythonActivity | |
129 | |
130 # (list) List of Java .jar files to add to the libs so that pyjnius can access | |
131 # their classes. Don't add jars that you do not need, since extra jars can slow | |
132 # down the build process. Allows wildcards matching, for example: | |
133 # OUYA-ODK/libs/*.jar | |
134 #android.add_jars = foo.jar,bar.jar,path/to/more/*.jar | |
135 | |
136 # (list) List of Java files to add to the android project (can be java or a | |
137 # directory containing the files) | |
138 #android.add_src = | |
139 | |
140 # (str) python-for-android branch to use, if not master, useful to try | |
141 # not yet merged features. | |
142 #android.branch = master | |
143 | |
144 # (str) OUYA Console category. Should be one of GAME or APP | |
145 # If you leave this blank, OUYA support will not be enabled | |
146 #android.ouya.category = GAME | |
147 | |
148 # (str) Filename of OUYA Console icon. It must be a 732x412 png image. | |
149 #android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png | |
150 | |
151 # (str) XML file to include as an intent filters in <activity> tag | |
152 #android.manifest.intent_filters = | |
153 | |
154 # (list) Android additionnal libraries to copy into libs/armeabi | |
155 #android.add_libs_armeabi = libs/android/*.so | |
156 #android.add_libs_armeabi_v7a = libs/android-v7/*.so | |
157 #android.add_libs_x86 = libs/android-x86/*.so | |
158 #android.add_libs_mips = libs/android-mips/*.so | |
159 | |
160 # (bool) Indicate whether the screen should stay on | |
161 # Don't forget to add the WAKE_LOCK permission if you set this to True | |
162 #android.wakelock = False | |
163 | |
164 # (list) Android application meta-data to set (key=value format) | |
165 #android.meta_data = | |
166 | |
167 # (list) Android library project to add (will be added in the | |
168 # project.properties automatically.) | |
169 #android.library_references = | |
170 | |
171 # (str) Android logcat filters to use | |
172 #android.logcat_filters = *:S python:D | |
173 | |
174 # (bool) Copy library instead of making a libpymodules.so | |
175 #android.copy_libs = 1 | |
176 | |
177 # | |
178 # iOS specific | |
179 # | |
180 | |
181 # (str) Path to a custom kivy-ios folder | |
182 #ios.kivy_ios_dir = ../kivy-ios | |
183 | |
184 # (str) Name of the certificate to use for signing the debug version | |
185 # Get a list of available identities: buildozer ios list_identities | |
186 #ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)" | |
187 | |
188 # (str) Name of the certificate to use for signing the release version | |
189 #ios.codesign.release = %(ios.codesign.debug)s | |
190 | |
191 | |
192 [buildozer] | |
193 | |
194 # (int) Log level (0 = error only, 1 = info, 2 = debug (with command output)) | |
140
8f33a7c09214
build (buildozer.spec): updated buildozer spec to build with new toolchain (and code evolution since last build)
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
195 log_level = 2 |
61 | 196 |
197 # (int) Display warning if buildozer is run as root (0 = False, 1 = True) | |
198 warn_on_root = 1 | |
199 | |
200 # (str) Path to build artifact storage, absolute or relative to spec file | |
201 # build_dir = ./.buildozer | |
140
8f33a7c09214
build (buildozer.spec): updated buildozer spec to build with new toolchain (and code evolution since last build)
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
202 build_dir = /build/buildozer-cagou |
61 | 203 |
204 # (str) Path to build output (i.e. .apk, .ipa) storage | |
205 # bin_dir = ./bin | |
206 | |
207 # ----------------------------------------------------------------------------- | |
208 # List as sections | |
209 # | |
210 # You can define all the "list" as [section:key]. | |
211 # Each line will be considered as a option to the list. | |
212 # Let's take [app] / source.exclude_patterns. | |
213 # Instead of doing: | |
214 # | |
215 #[app] | |
216 #source.exclude_patterns = license,data/audio/*.wav,data/images/original/* | |
217 # | |
218 # This can be translated into: | |
219 # | |
220 #[app:source.exclude_patterns] | |
221 #license | |
222 #data/audio/*.wav | |
223 #data/images/original/* | |
224 # | |
225 | |
226 | |
227 # ----------------------------------------------------------------------------- | |
228 # Profiles | |
229 # | |
230 # You can extend section / key with a profile | |
231 # For example, you want to deploy a demo version of your application without | |
232 # HD content. You could first change the title to add "(demo)" in the name | |
233 # and extend the excluded directories to remove the HD content. | |
234 # | |
235 #[app@demo] | |
236 #title = My Application (demo) | |
237 # | |
238 #[app:source.exclude_patterns@demo] | |
239 #images/hd/* | |
240 # | |
241 # Then, invoke the command line with the "demo" profile: | |
242 # | |
243 #buildozer --profile demo android debug |