Initial
This commit is contained in:
parent
11cb7a4abc
commit
d60ec051e0
12 changed files with 473 additions and 0 deletions
20
magiskmodule/Makefile
Normal file
20
magiskmodule/Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
getprop = $(shell cat module.prop | grep "^$(1)=" | head -n1 | cut -d'=' -f2)
|
||||
|
||||
MODNAME ?= $(call getprop,id)
|
||||
MODVER ?= $(call getprop,version)
|
||||
ZIP = $(MODNAME)-$(MODVER).zip
|
||||
|
||||
all: $(ZIP)
|
||||
|
||||
zip: $(ZIP)
|
||||
|
||||
%.zip: clean
|
||||
zip -r9 $(ZIP) . -x $(MODNAME)-*.zip LICENSE .gitignore .gitattributes Makefile /.git*
|
||||
|
||||
clean:
|
||||
rm -f *.zip
|
||||
|
||||
update:
|
||||
curl https://raw.githubusercontent.com/topjohnwu/Magisk/master/scripts/module_installer.sh > META-INF/com/google/android/update-binary
|
||||
|
||||
.PHONY: all zip %.zip install clean update
|
Loading…
Add table
Add a link
Reference in a new issue