GitHub bug whit zip files

General discussion about coding games. Best place to ask for help or to share some tips and tricks for coding.
Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post by Raddeck »

If you encounter this bug on Github with your zipped files.

"Number of entries expected in End Of Central Directory does not correspond to number of entries in Central Directory."


My winning solution:
I just edited the .gitattributes file included in the same folder and added this line:

Code: Select all

*.zip binary
I then deleted the offending zip file from my repo on Github and uploaded a new version of the zip.
* You can also just renamed your zip file (it can be the same name - We are faking an update...) and make a push to uploaded a new version of the zip.

Now I can download zip files hosted on my Github.


As simple as that!
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply