def BuildAndDeployWindows(signer=None):
  """Run buildanddeploy for 32/64 dbg/prod."""
  build_combos = [
      {"arch": "amd64", "debug_build": True},
      {"arch": "amd64", "debug_build": False},
      {"arch": "i386", "debug_build": True},
      {"arch": "i386", "debug_build": False}]
  timestamp = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime())
  args.package_format = "exe"

  # TODO(user): Build components here.
  # component.BuildComponents(output_dir=output_dir)

  context_orig = SetOSContextFromArgs([])
  # Take a copy of the context list so we can reset back to clean state for each
  # buildanddeploy run
  context = list(context_orig)
  for argset in build_combos:
    for key, value in argset.items():
      setattr(args, key, value)
    context = SetArchContextFromArgs(context)
    context = SetDebugContextFromArgs(context)
    print "Building for: %s" % context
    BuildAndDeploy(context, timestamp=timestamp, signer=signer)
    context = list(context_orig)
dataset/ETHPy150Open google/grr/grr/client/client_build.py/BuildAndDeployWindows/original