-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 775 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 775 Bytes
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
.PHONY: default help release clean
.SILENT: help release-key.jks
default: help
help:
echo "usage:"
echo " make release"
echo " make clean"
clean:
rm -f streckbryggan.apk*
rm -f app-release-unsigned-aligned.apk
./gradlew clean
release: streckbryggan.apk
release-key.jks:
echo "$@ not found, please consult the README"
exit 1
streckbryggan.apk: release-key.jks app-release-unsigned-aligned.apk
apksigner sign --ks release-key.jks --out $@ app-release-unsigned-aligned.apk
app/build/outputs/apk/release/app-release-unsigned.apk:
./gradlew assemble
app-release-unsigned-aligned.apk: app/build/outputs/apk/release/app-release-unsigned.apk
zipalign -v -p 4 \
app/build/outputs/apk/release/app-release-unsigned.apk \
app-release-unsigned-aligned.apk