ITADN
xlings-res/godot-cpp
xlings-res/godot-cpp · 文件
文件最后提交记录最后更新时间
README.md

godot-cpp (mcpp resource mirror)

Immutable build inputs for the compat.godot-cpp package. This repository holds no source of its own — releases here are archives of upstream godotengine/godot-cpp.

Why a repack

godot-cpp is only half a source tree. The other half — ~1000 GDExtension engine classes plus every builtin Variant type (gen/include/, gen/src/) — is produced by upstream's own binding_generator.py from gdextension/extension_api.json, and no upstream tag archive or release carries it. Generating it on the consumer side would make Python a hard dependency of every build on every platform.

So the generator runs once, offline, and the result is published here.

Contents of each release asset

godot-cpp-<version>.tar.gz is exactly:

  • the upstream tag archive, byte-for-byte (the packer diffs the two trees and refuses to publish if any upstream file differs), plus
  • gen/, emitted by upstream's unmodified binding_generator.py in its default configuration: 64-bit, precision=single, template_get_node on.

Repacking is deterministic (sorted entries, fixed mtime, gzip -n), so anyone can rebuild the asset and compare sha256.

versionupstream tagupstream archive sha256asset sha256
4.5.0godot-4.5-stableac78539c0042554c494ea419549d2de88758d448721aeb0e5d41129aa87e339cb0c36e77f02c4181352cdd7547b209b93a833be1ad6197f8c650d92987221a00

Reproduce

# from a mcpp-index checkout
tools/godot-cpp/repack.sh godot-4.5-stable 4.5.0 /tmp/out
sha256sum /tmp/out/godot-cpp-4.5.0.tar.gz

The CN mirror of the same bytes lives at https://gitcode.com/mcpp-res/godot-cpp/releases.

Upstream godot-cpp is MIT licensed; see LICENSE.md inside the archive.