| # Copyright 2019 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| """Creates an .apks from an .aab.""" |
| os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))) |
| from pylib.utils import app_bundle_utils |
| parser = argparse.ArgumentParser(description=__doc__) |
| '--bundle', required=True, help='Path to input .aab file.') |
| '--output', required=True, help='Path to output .apks file.') |
| parser.add_argument('--aapt2-path', required=True, help='Path to aapt2.') |
| '--keystore-path', required=True, help='Path to keystore.') |
| '--keystore-password', required=True, help='Keystore password.') |
| '--keystore-name', required=True, help='Key name within keystore') |
| help='Create APKs archive with minimal language support.') |
| args = parser.parse_args() |
| app_bundle_utils.GenerateBundleApks( |
| if __name__ == '__main__': |