Commit 7058c8ff authored by topjohnwu's avatar topjohnwu

Force main binaries recompile everytime

parent 64e85da5
......@@ -58,6 +58,12 @@ def build_all(args):
def build_binary(args):
header('* Building Magisk binaries')
# Force update Android.mk footprint to trigger recompilation
with open(os.path.join('jni', 'Android.mk'), 'r') as makefile:
content = makefile.read()
with open(os.path.join('jni', 'Android.mk'), 'w') as makefile:
makefile.write(content)
ndk_build = os.path.join(os.environ['ANDROID_HOME'], 'ndk-bundle', 'ndk-build')
debug_flag = '' if args.release else '-DMAGISK_DEBUG'
proc = subprocess.run('{} APP_CFLAGS=\"-DMAGISK_VERSION=\\\"{}\\\" -DMAGISK_VER_CODE={} {}\" -j{}'.format(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment