godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.51k stars 21.07k forks source link

[4.3] Web Export not working via command line #97841

Open nyrrrr opened 2 weeks ago

nyrrrr commented 2 weeks ago

Tested versions

4.3 Stable

System information

Windows 11

Issue description

I have tried to export my project to Windows & Web via command line (both locally and via GitHub actions using ubuntu). The result is a working Windows export and a broken ZIP file for Web.

Steps to reproduce

  1. Create new Project
  2. Export > Manage Export Templates > download 4.3 templates
  3. "Project > Export > Add..." Web export
  4. Name it Web
  5. Save everything
  6. run /path/to/your/Godot_v4.3-stable_win64_console.exe --headless --verbose --export-release "Web" ./HTML5.zip --path "./"
  7. Try to open resulting ZIP file
  8. Message pops up telling you the zip file is invalid image

I also tried different parameters, like running it in editor instead of headless mode or using export-debug or no path. All the same result

Note that exporting via Export in editor works fine!

Minimal reproduction project (MRP)

project.zip

nyrrrr commented 2 weeks ago
$ /c/Programme/Godot/Godot_v4.3-stable_win64.exe --headless --verbose --export-release "Web" ./HTML5.zip --path "./" --preset "Web"
Godot Engine v4.3.stable.official.77dcf97d8 - https://godotengine.org
TextServer: Added interface "Dummy"
TextServer: Added interface "ICU / HarfBuzz / Graphite (Built-in)"
Using "default" pen tablet driver...

TextServer: Primary interface set to: "ICU / HarfBuzz / Graphite (Built-in)".
CORE API HASH: 966092234
EDITOR API HASH: 444927587
EditorSettings: Load OK!
EditorTheme: Generating new theme for the config '66886095'.
EditorTheme: Generating new icons.
EditorTheme: Generating new fonts.
EditorTheme: Generating new styles.
MbedTLS: Some X509 certificates could not be parsed (1 certificates skipped).
Loaded system CA certificates
EditorSettings: Save OK!
reimport: begin: (Re)Importing Assets steps: 3
        reimport: step 0: HTML5.apple-touch-icon.png
EditorFileSystem: Importing file: res://HTML5.apple-touch-icon.png
EditorFileSystem: Importing file: res://HTML5.icon.png
EditorFileSystem: Importing file: res://HTML5.png
        reimport: step 2: HTML5.png
EditorFileSystem: "res://HTML5.icon.png" import took 21 ms.
EditorFileSystem: "res://HTML5.apple-touch-icon.png" import took 24 ms.
EditorFileSystem: "res://HTML5.png" import took 84 ms.
reimport: end
savepack: begin: Packing steps: 102
        savepack: step 2: Storing File: res://.godot/imported/HTML5.apple-touch-icon.png-d6a7cfa7edd5c590291cda2a3af5295b.ctex
        savepack: step 2: Storing File: res://HTML5.apple-touch-icon.png.import
        savepack: step 22: Storing File: res://.godot/imported/HTML5.icon.png-84ee77950e212461b16466401620ed79.ctex
        savepack: step 22: Storing File: res://HTML5.icon.png.import
        savepack: step 42: Storing File: res://.godot/imported/HTML5.png-9554342e46048faa4bfd08e7976a82e1.ctex
        savepack: step 42: Storing File: res://HTML5.png.import
        savepack: step 62: Storing File: res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex
        savepack: step 62: Storing File: res://icon.svg.import
        savepack: step 82: Storing File: res://.godot/exported/133200997/export-362256a061aa8890e9a1e558b11e5ec3-node_2d.scn
        savepack: step 82: Storing File: res://node_2d.tscn.remap
        savepack: step 82: Storing File: res://.godot/global_script_class_cache.cfg
        savepack: step 82: Storing File: res://icon.svg
        savepack: step 82: Storing File: res://.godot/uid_cache.bin
        savepack: step 82: Storing File: res://project.binary
savepack: end
EditorSettings: Save OK!
XR: Clearing primary interface
XR: Removed interface "Native mobile"
XR: Removed interface "OpenXR"
Orphan StringName: Node (static: 4, total: 5)
StringName: 1 unclaimed string names at exit.

just in case someone needs to see the logs

Swarkin commented 2 weeks ago

Can confirm: image Log: godot.log