godotengine / godotengine/godot

[4.3] Web Export not working via command line

Open
#97,841 5 comments 0 reactions 1 assignee Claimed by @adamscott View on GitHub
bug platform:web topic:editor topic:export
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### 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](https://github.com/user-attachments/assets/291ac7f5-b37c-46d5-8a23-85009d30c87b)

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](https://github.com/user-attachments/files/17265762/project.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.