Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 521a5150 authored by Emilio López's avatar Emilio López Committed by Ricardo Cerqueira
Browse files

Optimize the CM builds

Why sign, align, unpack, optimize, sign, align zips and apks?
Just sign and align once on the squisher to speed things up.

Change-Id: I54db8b624be331b234eb968efb64de7629cd7f82
parent 8ec85581
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -480,6 +480,7 @@ function brunch()
{
    breakfast $*
    if [ $? -eq 0 ]; then
        export CM_FAST_BUILD=1
        mka bacon
    else
        echo "No such item in brunch menu. Try 'breakfast'"
+4 −0
Original line number Diff line number Diff line
@@ -388,6 +388,10 @@ def SignFile(input_name, output_name, key, password, align=None,
  zip file.
  """

  if os.environ.get('CM_FAST_BUILD', False):
    shutil.copy(input_name, output_name)
    return

  if align == 0 or align == 1:
    align = None