My apk contain both js file and jsc file after build release. How to delete all js file in release apk
I think there is a problem in project_compile.py, os.remove(full_path) canβt delete js files. I checked the path and it correct, can someone give me a solution, thank you, below is line 365 in project_compile.py
def _remove_file_with_ext(self, work_dir, ext):
file_list = os.listdir(work_dir)
for f in file_list:
full_path = os.path.join(work_dir, f)
if os.path.isdir(full_path):
self._remove_file_with_ext(full_path, ext)
elif os.path.isfile(full_path):
name, cur_ext = os.path.splitext(f)
if cur_ext == ext:
os.remove(full_path)