Skip to main content

Godot Export Preset Doctor

Release-readiness checks for Godot export_presets.cfg, focused on Android, CI export hygiene, debug flags, signing safety, package identity, ABIs, icons, and missing export paths.

The tool is a companion to export workflows. It does not build the game; it catches risky preset drift before a release job runs godot --headless --export-release.

Use it when a release preset changes, when setting up a new export target, or before cutting a public build from CI.

Install

python -m pip install -e .

From PyPI:

python -m pip install godot-export-preset-doctor

Quick Start

godot-export-doctor C:\Projects\MyGame
godot-export-doctor . --platform Android
godot-export-doctor . --platform Android --required-android-abi arm64-v8a
godot-export-doctor . --format sarif --output export-doctor.sarif
godot-export-doctor matrix . --expected-platform Android --expected-platform Web --format markdown
godot-export-doctor leaks . --format html --output reports\export-leaks.html
godot-export-doctor diff . --baseline reports\baseline-export-presets --format markdown
godot-export-doctor inspect-folder build\android --hash-files --format markdown
godot-export-doctor inspect-files reports\export-file-list.json --format markdown

Use --fail-on none while exploring a report:

godot-export-doctor examples\bad-export-project --fail-on none

Real Workflow: Gate Release Presets In CI

Run the checker before a Godot export step so preset drift fails early:

godot-export-doctor . --platform Android --fail-on warning --format sarif --output reports\export-doctor.sarif

This is especially useful for:

  • catching debug flags that were left enabled in release-like presets;
  • checking Android package id, version, icon, and ABI readiness;
  • spotting local keystore paths or literal credential values before reports are shared;
  • confirming export paths exist and match the expected target.

For a first pass on an existing project, avoid failing the build while you review findings:

godot-export-doctor . --platform Android --fail-on none --format json --output reports\export-doctor.json

Require a specific Android ABI without creating a config file:

godot-export-doctor . --platform Android --required-android-abi arm64-v8a --fail-on warning

What It Checks

  • Missing export_presets.cfg.
  • Missing preset name, platform, or export path.
  • Android package id, version code/name, enabled ABI, and launcher icon readiness.
  • Release-like presets with debug options enabled.
  • Hard-coded password, token, secret, or keystore-like values.
  • Missing or duplicated expected export platforms in a release matrix.
  • Export preset changes compared with a baseline.
  • Broad export filters that may include debug/test/source files.
  • Exported folders that contain debug/test/source-art/log/backup files.
  • Exported folders and file lists that contain signing, key, provisioning, or environment files.
  • Exported folder manifests with file sizes, extension counts, and optional SHA-256 hashes.
  • Local-looking export, include, or exclude paths that should not be shared in CI artifacts.
  • JSON and SARIF output for scripts and CI, with plain-language rule explanations.

Commands

check is the default command and keeps the original release-readiness behavior:

godot-export-doctor check . --platform Android --format sarif --output reports\export.sarif

For older scripts, this is equivalent to:

godot-export-doctor . --platform Android --format sarif --output reports\export.sarif

matrix gives a compact table of export presets and warns when an expected platform is missing or duplicated:

godot-export-doctor matrix . --expected-platform Android --expected-platform Web --format markdown

leaks checks broad export filters against common development-file patterns and flags local-looking paths in preset fields:

godot-export-doctor leaks . --format html --output reports\export-leaks.html --fail-on none

diff compares the current export_presets.cfg with a baseline project or baseline preset file:

godot-export-doctor diff . --baseline reports\baseline-export-presets --format markdown

inspect-folder scans an already-exported folder for development-looking files, private/signing files, extension counts, and file size totals. Add --hash-files when you want SHA-256 values in the file manifest:

godot-export-doctor inspect-folder build\android --hash-files --format json --output reports\exported-folder.json

inspect-files checks a newline-separated exported file list or a JSON file containing files or paths. It does not parse .pck binaries directly; pass a file list generated by your export pipeline instead:

godot-export-doctor inspect-files reports\export-file-list.json --format markdown --output reports\exported-files.md

Configuration

Create .godot-export-doctor.toml:

format = "text"
fail_on = "warning"
platform = "Android"
required_android_abis = ["arm64-v8a"]
allowed_secret_patterns = ["<.+>"]

CLI flags override config values.

Output

Text:

godot-export-doctor .

JSON:

godot-export-doctor . --format json --output export-report.json

JSON reports include report metadata, a rule catalog, and findings with readable titles and explanations. This makes CI artifacts easier to review without looking up every rule id.

Markdown or HTML matrix report:

godot-export-doctor matrix . --expected-platform Android --expected-platform Web --format html --output export-matrix.html

SARIF:

godot-export-doctor . --format sarif --output export-doctor.sarif

CI Example

- run: python -m pip install godot-export-preset-doctor
- run: godot-export-doctor . --platform Android --fail-on warning --format sarif --output reports/export-doctor.sarif
- run: godot-export-doctor matrix . --expected-platform Android --expected-platform Web --format markdown --output reports/export-matrix.md --fail-on warning
- run: godot-export-doctor leaks . --format html --output reports/export-leaks.html --fail-on warning
- run: godot-export-doctor diff . --baseline reports/baseline-export-presets --format markdown --output reports/export-diff.md --fail-on none
- run: godot-export-doctor inspect-folder build/android --hash-files --format json --output reports/exported-folder.json --fail-on none

Documentation

Development

python -m pip install -e .
python -m unittest discover -s tests -v
godot-export-doctor examples\bad-export-project --fail-on none

Design Notes

The checker is intentionally static. It reads Godot config files and reports conservative findings that are useful in local development and CI. It does not need the Godot editor, Android SDK, or network access.

Examples and fixtures are generic by design. They should be safe to publish without exposing private project details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

godot_export_preset_doctor-0.1.10.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

godot_export_preset_doctor-0.1.10-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file godot_export_preset_doctor-0.1.10.tar.gz.

File metadata

File hashes

Hashes for godot_export_preset_doctor-0.1.10.tar.gz
Algorithm Hash digest
SHA256 f097f049185b6af77edd4a6800e59b604bc0aa60effe449a391de2296bc8a900
MD5 7e53032137e31442d0725ca34f18b96f
BLAKE2b-256 2644e16fafb9eacf940cbcc7f622bc9a305c05cd05eb8856962bcd35915b3787

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_export_preset_doctor-0.1.10.tar.gz:

Publisher: publish-export-preset-doctor.yml on NonniGB/godot-production-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file godot_export_preset_doctor-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for godot_export_preset_doctor-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ca5b181cf2af8566ddfaa8ec67ab5c52ea108e9ac1903cfe2b145e375aef74e5
MD5 1b6dd1dade89aeb1df75c6b8ca65ad46
BLAKE2b-256 f1e4c483aba5f23423e6928e46bf2b90e377c19fecdc3f6f08d4748962368454

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_export_preset_doctor-0.1.10-py3-none-any.whl:

Publisher: publish-export-preset-doctor.yml on NonniGB/godot-production-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page