PYTHON = python3 # needs kivy installed or in PYTHONPATH .PHONY: theming apk clean theming: bash -c 'for i in network lightning; do convert -background none theming/light/$$i.{svg,png}; done' convert -background none -crop +0+390 theming/light/lightning_switch.svg theming/light/lightning_switch_off.png convert -background none -crop 840x390+0+0 theming/light/lightning_switch.svg theming/light/lightning_switch_on.png $(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 ../../../run_electrum ../../../main.py @-if [ ! -d "../../.buildozer" ];then \ cd ../../..; buildozer android debug;\ cp -f electrum/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 debug deploy run @make clean release: @make prepare @-cd ../../..; buildozer android release @make clean clean: # Cleaning up # rename main.py to electrum @-rm ../../../main.py # remove buildozer.spec @-rm ../../../buildozer.spec