Fix android build once again, add SQL-files #2182

Merged
PeterSurda merged 5 commits from gitea-71 into v0.6 2024-02-27 00:41:54 +01:00
6 changed files with 25 additions and 8 deletions

View File

@ -94,8 +94,8 @@ RUN useradd -m -U builder && mkdir /android
WORKDIR /android WORKDIR /android
RUN chown -R builder.builder /android "${ANDROID_SDK_HOME}/.android" \ RUN chown -R builder.builder /android "${ANDROID_SDK_HOME}" \
&& chmod -R go+w "${ANDROID_SDK_HOME}/.android" && chmod -R go+w "${ANDROID_SDK_HOME}"
USER builder USER builder

View File

@ -1,8 +1,9 @@
#!/bin/sh #!/bin/bash
export LC_ALL=en_US.UTF-8 export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
cd packages/android pushd packages/android
buildozer android debug || exit $? buildozer android debug || exit $?
cd ../.. popd
mkdir -p ../out mkdir -p ../out
mv packages/android/bin/*.apk ../out cp packages/android/bin/*.apk ../out

6
.buildbot/android/test.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
unzip -p packages/android/bin/*.apk assets/private.tar \
| tar --list -z > package.list
cat package.list
cat package.list | grep '\.sql$' || exit 1

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
bin
build
dist
__pycache__
.buildozer
.tox
mprofile_*

5
.gitignore vendored
View File

@ -12,6 +12,7 @@ src/**/*.so
src/**/a.out src/**/a.out
build/lib.* build/lib.*
build/temp.* build/temp.*
bin
dist dist
*.egg-info *.egg-info
docs/_*/* docs/_*/*
@ -19,6 +20,8 @@ docs/autodoc/
build build
pyan/ pyan/
**.coverage **.coverage
coverage.xml
**htmlcov* **htmlcov*
**coverage.json **coverage.json
.buildozer
.tox

View File

@ -13,7 +13,7 @@ package.domain = org.mock
source.dir = ../../src source.dir = ../../src
# (list) Source files to include (let empty to include all the files) # (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas,tflite source.include_exts = py,png,jpg,kv,atlas,tflite,sql
# (list) List of inclusions using pattern matching # (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png #source.include_patterns = assets/*,images/*.png