mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Simplify SDK path configuration
As long as we're making the user specify the path to the SDK, we can use that information to find all the tools - there's no need for specifying the location of aapt separately or requiring the tools to be in $PATH.
This commit is contained in:
parent
a87532a54c
commit
4cfc02ae9d
4 changed files with 12 additions and 9 deletions
|
|
@ -95,8 +95,9 @@ for apkfile in glob.glob(os.path.join('repo','*.apk')):
|
|||
thisinfo['size'] = os.path.getsize(apkfile)
|
||||
thisinfo['permissions'] = []
|
||||
thisinfo['features'] = []
|
||||
p = subprocess.Popen([aapt_path,'dump','badging',
|
||||
apkfile], stdout=subprocess.PIPE)
|
||||
p = subprocess.Popen([os.path.join(sdk_path, 'platform-tools', 'aapt'),
|
||||
'dump', 'badging', apkfile],
|
||||
stdout=subprocess.PIPE)
|
||||
output = p.communicate()[0]
|
||||
if options.verbose:
|
||||
print output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue