-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
37 lines (27 loc) · 1011 Bytes
/
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
export ANDROID_SDK_ROOT=/Users/hansr/Library/Android/sdk
all: run
el: plugin
cordova build electron
run:
clear
cp ../rdzwx-plugin/src/android/*.kt ./platforms/android/app/src/main/kotlin/de/dl9rdz/
cordova run android --device
full:
clear
cordova plugin rm de-dl9rdz-rdzwx
cordova plugin add ../rdzwx-plugin/
cordova run android --device
plugin:
cordova plugin rm de-dl9rdz-rdzwx
cordova plugin add ../rdzwx-plugin/
release: apkrelease sign
mkrelease:
cordova build --release
.ONESHELL:
sign:
cd platforms/android/app/build/outputs/apk/release/ && \
rm -f app-release-unsigned-aligned.apk && \
/Users/hansr/Library/Android//sdk/build-tools/30.0.3/zipalign -v -p 4 app-release-unsigned.apk app-release-unsigned-aligned.apk && \
/Users/hansr/Library/Android//sdk/build-tools/30.0.3/apksigner sign --ks ~/src/rdzwx-go/my-release-key.jks --out app-release.apk app-release-unsigned-aligned.apk
apkrelease:
cordova build --release -- --packageType=apk