You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
844 B
32 lines
844 B
PYTHON = python
|
|
|
|
# needs kivy installed or in PYTHONPATH
|
|
|
|
.PHONY: theming apk clean
|
|
|
|
theming:
|
|
$(PYTHON) -m kivy.atlas theming/light 1024 theming/light/*.png
|
|
prepare:
|
|
# running pre build setup
|
|
@cp tools/buildozer.spec ../../buildozer.spec
|
|
# copy electrum to main.py
|
|
@cp ../../electrum ../../main.py
|
|
@-if [ ! -d "../../.buildozer" ];then \
|
|
cd ../..; buildozer android debug;\
|
|
cp -f gui/kivy/tools/blacklist.txt .buildozer/android/platform/python-for-android/src/blacklist.txt;\
|
|
rm -rf ./.buildozer/android/platform/python-for-android/dist;\
|
|
fi
|
|
apk:
|
|
@make prepare
|
|
@-cd ../..; buildozer android_new debug deploy run
|
|
@make clean
|
|
release:
|
|
@make prepare
|
|
@-cd ../..; buildozer android_new release
|
|
@make clean
|
|
clean:
|
|
# Cleaning up
|
|
# rename main.py to electrum
|
|
@-rm ../../main.py
|
|
# remove buildozer.spec
|
|
@-rm ../../buildozer.spec
|
|
|