From d30652f7b96afe79f84289d77b8dcba3eb67bb69 Mon Sep 17 00:00:00 2001 From: San Date: Tue, 2 Apr 2019 16:36:39 +1100 Subject: [PATCH] Fixing setup.py to include dex2jar correctly I tried to use `pip install .` to install qark recently in a vagrant machine and encountered the following error: ``` can't copy 'qark/lib/dex2jar-2.0/lib': doesn't exist or not a regular file ``` I am not 100% familiar with setup.py but fixxing this line to `*.*` so pip would try to copy only files with extension in dex2jar directory works. `*` would instruct pip to also copy lib child folder which cause the error above. San --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 84dacc7e..0e28dbc7 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ QARK_DIR: [ os.path.join("lib", "decompilers", "*.jar"), # include any decompiler jar files os.path.join("lib", "apktool", "*.jar"), # include apktool - os.path.join("lib", "dex2jar-2.0", "*"), # include dex2jar + os.path.join("lib", "dex2jar-2.0", "*.*"), # include dex2jar os.path.join("lib", "dex2jar-2.0", "lib", "*"), # include dex2jar os.path.join("templates", "*.jinja"), # include the reporting template files ] + exploit_apk_files, # include all the java files required for creating an exploit APK