mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-28 04:25:27 +00:00
Update native clean operation
This commit is contained in:
parent
0c52385ad4
commit
ad0da08610
7
build.py
7
build.py
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import argparse
|
import argparse
|
||||||
import errno
|
import errno
|
||||||
|
import glob
|
||||||
import lzma
|
import lzma
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import os
|
import os
|
||||||
@ -10,9 +11,9 @@ import shutil
|
|||||||
import stat
|
import stat
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import tarfile
|
||||||
import textwrap
|
import textwrap
|
||||||
import urllib.request
|
import urllib.request
|
||||||
import tarfile
|
|
||||||
from zipfile import ZipFile
|
from zipfile import ZipFile
|
||||||
|
|
||||||
|
|
||||||
@ -490,7 +491,9 @@ def cleanup(args):
|
|||||||
rm_rf(op.join("native", "obj"))
|
rm_rf(op.join("native", "obj"))
|
||||||
rm_rf(op.join("native", "out"))
|
rm_rf(op.join("native", "out"))
|
||||||
rm_rf(op.join("native", "src", "target"))
|
rm_rf(op.join("native", "src", "target"))
|
||||||
rm_rf(op.join("native", "src", "external", "cxx-rs", "target"))
|
rm(op.join("native", "src", "boot", "update_metadata.rs"))
|
||||||
|
for rs_gen in glob.glob("native/**/*-rs.*pp", recursive=True):
|
||||||
|
rm(rs_gen)
|
||||||
|
|
||||||
if "java" in args.target:
|
if "java" in args.target:
|
||||||
header("* Cleaning java")
|
header("* Cleaning java")
|
||||||
|
Loading…
Reference in New Issue
Block a user