mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-08 00:10:29 +03:00
run all SDK tools commands using SdkToolsPopen
This commit is contained in:
parent
9244256461
commit
fa1cc48d57
5 changed files with 58 additions and 38 deletions
|
|
@ -28,7 +28,7 @@ import logging
|
|||
|
||||
import common
|
||||
import metadata
|
||||
from common import FDroidPopen, BuildException
|
||||
from common import FDroidPopen, SdkToolsPopen, BuildException
|
||||
|
||||
config = None
|
||||
options = None
|
||||
|
|
@ -213,8 +213,8 @@ def main():
|
|||
raise BuildException("Failed to sign application")
|
||||
|
||||
# Zipalign it...
|
||||
p = FDroidPopen([config['zipalign'], '-v', '4', apkfile,
|
||||
os.path.join(output_dir, apkfilename)])
|
||||
p = SdkToolsPopen(['zipalign', '-v', '4', apkfile,
|
||||
os.path.join(output_dir, apkfilename)])
|
||||
if p.returncode != 0:
|
||||
raise BuildException("Failed to align application")
|
||||
os.remove(apkfile)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue