forked from HamiltonHuaji/PKUWalker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
31 lines (29 loc) · 1.07 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
APKTOOL = apktool
build/pkurunner-v1.2.4_res.apk :
$(APKTOOL) d build/pkurunner-v1.2.4_origin.apk -o build/pkurunner-v1.2.4_res
cd build/pkurunner-v1.2.4_res/ && patch -p2 < ../../pkurunner.patch
$(APKTOOL) empty-framework-dir
$(APKTOOL) b build/pkurunner-v1.2.4_res -o build/pkurunner-v1.2.4_res.apk
.PHONY : clean
clean :
rm -fr build/pkurunner-v1.2.4_res
rm build/pkurunner-v1.2.4_res.apk
.PHONY : mod
mod :
cd build/pkurunner-v1.2.4_res/ && patch -p2 < ../../pkurunner.patch
.PHONY : apk
apk :
$(APKTOOL) empty-framework-dir
$(APKTOOL) b build/pkurunner-v1.2.4_res -o build/pkurunner-v1.2.4_res.apk
.PHONY : smali
smali :
$(APKTOOL) d build/pkurunner-v1.2.4_origin.apk -o build/pkurunner-v1.2.4_res
.PHONY : sign
sign :
jarsigner -keystore tmp.keystore -signedjar build/pkurunner-v1.2.4_res.apk build/pkurunner-v1.2.4_res.apk tmp.keystore
.PHONY : gen_sign
gen_sign :
keytool -genkey -alias tmp.keystore -keyalg RSA -validity 20000 -keystore tmp.keystore
# .PHONY : gen_patch
# gen_patch :
# diff -Nuar build/pkurunner-v1.2.4_res/ build/pkurunner-v1.2.4_patch/ > pkurunner.patch