I am developing a modified branch of GT6. Recently, I met a problem when building the source. Everything works fine when I run the client, but the jar file is extremely large- about 145M. I unzipped the jar file and discovered that there are copies of same file for everything in the source folder, including classes, pngs, etc. I wish someone can help me out here. Thanks.
Here is the build.gradle file I used: https://paste.ubuntu.com/p/r6xkzCVhcx/
(P.S. I added zip64=true to the devJar and Jar tasks because the file number exceeds the limit)
Basically this is what I found in the unzipped jar file.
Holy crap what is that?!?! @OvermindDL1 please help, I have no Idea how such a thing can happen.
I first thought its because of the date modified timestamp being identical, but this is a zip File so ofcourse those dates dont exist actually, so that shouldn’t be the Issue.
Uh, not by any Gradle code that’s in it, that looks like a filesystem issue, like you don’t have it on Windows or in a Dropbox managed folder or something I hope? Build systems of most languages don’t handle such filesystem management things well (that’s the purpose of git).
At the very least wipe your build directory because it is now corrupted. Also if possible please paste a full tree of your project to pastebin or so.
Don’t know what xcopy does (never heard of that command?), but cp definitely does not rename files like that. It will either fail, ask, or overwrite, depending on mode. ^.^