0 votes

Hey All,

Godot 3.2.3 stabel | Mac OS, Big Sur

Exporting my second game for html5 and I am getting an error upon trying to upload to itch.io that there are too many files in the export zip. 1949 files to be exact.

I have less than 300 total files in the project folder and <160MB before compression. So when I compress it, it is somehow adding over 1600 files???

Can someone explain this to me? I didn't have this problem with my last game and it had more files and a larger file size. Is it something with my operating system or compression algorithm?

in Engine by (577 points)
edited by

1 Answer

0 votes
Best answer

Don't know why this worked, but it worked:

When exporting from Godot for html5, export as a .zip file OUTSIDE of your project folder. Then unzip/expand that file. Then go export the game as a .html inside of that expanded .zip file. Finally, recompress/zip that file.

This file was unbelievably small (15 MB vs 108 MB) in comparison to just exporting to a .html inside the project folder and compressing it myself. No idea why.

by (577 points)
selected by

You don't want to ZIP your entire project folder for distribution, as it will contain your source files but also imported files which are located in the hidden .import/ directory.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.