forked from matlink/gplaycli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (39 loc) · 1.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
SHELL := /bin/bash
PYTHON=$(shell which python3)
GIT=$(shell which git)
GPG=$(shell which gpg2)
TWINE=$(shell which twine)
BUILDIR=$(CURDIR)/debian/gplaycli
PROJECT=gplaycli
VERSION=$(shell $(PYTHON) setup.py --version)
GPGID=186BB3CA
PYTEST=$(shell which py.test)
TESTAPK=org.mozilla.focus
all: test
source:
$(PYTHON) setup.py sdist
sign:
$(GPG) --detach-sign --default-key $(GPGID) -a dist/GPlayCli-$(VERSION).tar.gz
publish: clean source sign
$(TWINE) upload dist/GPlayCli-$(VERSION).tar.gz dist/GPlayCli-$(VERSION).tar.gz.asc
clean:
$(PYTHON) setup.py clean
rm -rf build/ MANIFEST dist GPlayCli.egg-info debian/{gplaycli,python-module-stampdir} debian/gplaycli.{debhelper.log,postinst.debhelper,prerm.debhelper,substvars} *.tar.gz* deb_dist
find . -name '*.pyc' -delete
test:
$(PYTEST) tests/
rm -f ~/.cache/gplaycli/token
$(PROJECT) -vd $(TESTAPK)
[ -f $(TESTAPK).apk ]
sed -i "s/^./ /g" ~/.cache/gplaycli/token # alter token
$(PROJECT) -vd $(TESTAPK) -f download
[ -f download/$(TESTAPK).apk ]
$(PROJECT) -vyu tests
$(PROJECT) -s fire -n 30 | wc -l
$(PROJECT) -s com.yogavpn
$(PROJECT) -s com.yogavpn -n 15
$(PROJECT) -vd $(TESTAPK) -dc hammerhead
$(PROJECT) -d com.mapswithme.maps.pro -a
[ -f com.mapswithme.maps.pro.apk ]
[ -f main.*.com.mapswithme.maps.pro.obb ]
[ -f patch.*.com.mapswithme.maps.pro.obb ]