Files
pallectrum/electrum/gui/kivy/Makefile

36 lines
1.2 KiB
Makefile
Raw Normal View History

PYTHON = python3
2016-06-01 01:56:34 +05:30
# needs kivy installed or in PYTHONPATH
.PHONY: theming apk clean
theming:
2018-11-13 16:53:29 +01:00
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
2016-03-05 09:27:31 +01:00
prepare:
# running pre build setup
2018-07-13 14:45:08 +02:00
@cp tools/buildozer.spec ../../../buildozer.spec
2015-09-09 12:08:09 +02:00
# copy electrum to main.py
2018-07-13 14:45:08 +02:00
@cp ../../../run_electrum ../../../main.py
2018-11-26 03:47:41 +01:00
@-if [ ! -d "../../../.buildozer" ];then \
2018-07-13 14:45:08 +02:00
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
2016-03-05 09:27:31 +01:00
apk:
@make prepare
2018-07-13 14:45:08 +02:00
@-cd ../../..; buildozer android debug deploy run
@make clean
2016-03-05 09:27:31 +01:00
release:
@make prepare
2018-07-13 14:45:08 +02:00
@-cd ../../..; buildozer android release
2016-03-05 09:27:31 +01:00
@make clean
clean:
# Cleaning up
# rename main.py to electrum
2018-07-13 14:45:08 +02:00
@-rm ../../../main.py
# remove buildozer.spec
2018-07-13 14:45:08 +02:00
@-rm ../../../buildozer.spec