tree: dc5a81b4035c443c89edbf75bb893688afe9120d [path history] [tgz]
  1. .gitignore
  2. __init__.py
  3. commands.py
  4. commands_test.py
  5. config.py.in
  6. model.py
  7. model_test.py
  8. modification.py
  9. modification_test.py
  10. pipeline.py
  11. pipeline_test.py
  12. README.md
  13. run_mac_signing_tests.py
  14. signing.py
  15. signing_test.py
  16. test_common.py
  17. test_config.py
chrome/installer/mac/signing/README.md

Signing Scripts for Chrome on macOS

This directory contains Python modules that modify the Chrome application bundle for various release channels, sign the resulting bundle, package it into a DMG for distribution, and sign the resulting DMG.

Invoking

The scripts are invoked using the driver located at //chrome/installer/mac/sign_chrome.py.

The DMG packaging aspect of the process require assets that are only available in a src-internal checkout, so these scripts will not fully succeed if invoked from a Chromium-only checkout. The signing-only aspects can be run without the DMG packaging by passing --no-dmg.

Running Tests

Simply run the wrapper script at //chrome/installer/mac/signing/run_mac_signing_tests.py.

You can pass --coverage or -c to show coverage information. To generate a HTML coverage report and Python coverage package is available (via pip install coverage), run:

coverage3 run -m unittest discover -p '*_test.py'
coverage3 html

Formatting

The code is automatically formatted with YAPF. Run:

git cl format --python