Repository navigation
v4.7.2.139
2dog 4.7.2.139 adds smaller web bundles and simpler compression settings for static hosting. It targets Godot 4.7.2 and .NET 10.
Changes
- Choose the web compression formats you ship.
TwoDogWebPrecompressFormatsselects Brotli, gzip, or both. Publishing removes compressed copies for deselected formats, or when precompression is disabled, so reused output folders do not retain stale copies. - Smaller uploads for web hosting with size limits.
TwoDogWebPrecompressKeepOriginals=falseremoves the uncompressed engine, game pack and .NET binaries after compression. Publishing automatically enables the page's gzip loader in the deployedindex.html; gzip must be among the selected formats. - Matching preloads and clearer deployment guidance. Web and WebXR templates now select preload URLs from the gzip setting, avoiding downloads of both compressed and uncompressed engine and pack files. The web configuration guide explains which settings suit each server, and the desktop publishing guide adds an example for bundling native libraries.
Upgrading
Commit your project changes, then run from the Godot project directory:
dnx 2dog@4.7.2.139 updateManaged packages: 4.7.2.139. Native and tools packages: 4.7.2.52.
Web compression still defaults to both formats with uncompressed originals retained. To opt into a gzip-only bundle for a server that does not compress responses, add to the web host's project file and publish with the dotnet CLI:
<PropertyGroup>
<TwoDogWebPrecompressFormats>gz</TwoDogWebPrecompressFormats>
<TwoDogWebPrecompressKeepOriginals>false</TwoDogWebPrecompressKeepOriginals>
</PropertyGroup>Earlier shells required manually enabling TWODOG_PCK_GZ; publishing without originals now enables it in the deployed copy. A custom shell must support fetching and inflating the gzip files, and browsers need DecompressionStream because there are no uncompressed files to fall back to. See web hosting with upload limits.
Existing Web/WebXR hosts need a manual edit to adopt the new preload behavior: replace the two fixed engine/pack preload links with the conditional preload script and move the gzip switch into that script, as shown in the released Web template. A package update does not rewrite your wwwroot/index.html.
Full Changelog: v4.7.2.137...v4.7.2.139