Signingscript

Latest version: v9.5.1

Safety actively analyzes 629599 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 10

4.0.2

Fixed
- widevine signing for mac now places sigfiles in `Contents/Resources/` instead of `Contents/MacOS/`. Given a path with an `.app` inside a `.app`, on the rightmost `Contents/MacOS/` path is changed.

4.0.1

Changed
- widevine signing now happens before macapp.

4.0.0

Added
- `sign_widevine_zip` only extracts the files we need to sign, and appends the sigfiles to the original zipfile.
- `sign_widevine_tar` extracts the entire tarball, and recreates it with the sigfiles added. This is because compressed tarballs can't be appended to.
- `get_zipfile_files` and `get_tarfile_files` lets us list the contents of an archive without extracting.
- `_get_widevine_signing_files` takes a list of file paths, and returns a dictionary of `{path: signing_format, ...}`. If a file to sign exists, but its `.sig` file also exists, we no longer mark that file for re-signing.

Changed
- `sign_signcode` now extracts to a new temp dir every time, to optimize for task runtime speed (no more nuking the same temp dir to reuse). This temp dir is under `work_dir`, so it should be cleaned up after the task is finished.
- `sign_widevine` now calls `sign_widevine_zip` or `sign_widevine_tar` as needed.
- `_extract_zipfile` now allows for specifying a `files` kwarg. If specified, only extract those paths. If not, extract everything.
- `_create_zipfile` now allows for appending, via the new `mode` kwarg.

3.0.2

Fixed
- fixed `widevine_blessed` signing.

3.0.1

Fixed
- supported signtool signing for non-zip files (e.g., setup.exe)

3.0.0

Added
- widevine support
- new `signingscript.sign` module

Changed
- refactored the whole signing workflow for more testability and less fragility

Page 6 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.