• Sorin Jianu's avatar
    Create a tagging script to allow tagging of signed metainstallers. · aa593979
    Sorin Jianu authored
    This tool is intended for developer use. It is not a production tool,
    although it may be extended at some point to offer the functionality
    of Omaha's ApplyTag.exe.
    
    The script is a wrapper for certificate_tag.exe.
    
    Since the tag format is not a simple concatenation of the magic
    string start and the tag, but it requires a big-endian value be
    inserted in between the strings, and certificate_tag.exe requires
    the tag be provided as a hex-encoded string, then some command
    wrapping is needed.
    
    For now, the tooling assumes the tag is ASCII-encoded, but UTF-8
    support can be provided later on.
    
    To use the tool, invoke it like this:
    
    python3 chrome\updater\tools\tag.py
    --certificate_tag=out\Default\certificate_tag.exe
    --in_file=out\Default\UpdaterSetup.signed.exe
    --tag=appguid={8A69D345-D564-463c-AFF1-A69D9E530F96}
    
    Bug: 1128751
    Change-Id: I2dab1dfd4e7fff34c9982868625b995cff122d8a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2426765Reviewed-by: default avatarJoshua Pawlicki <waffles@chromium.org>
    Commit-Queue: Sorin Jianu <sorin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#815609}
    aa593979
PRESUBMIT.py 660 Bytes