I want to change the :distZip task’s (from the plugin ‘application’) folder structure.
As a lot of people know, the original directory structure is
Project.zip /bin Shell Files (.bat and .sh) /lib Application.jar Other Libraries
But since i am using LWJGL (witch requires native files), I get errors when launching the executable in the bin folder. I got the natives set up correctly in the dev enviroment, so no worries here.
I use a workaround of setting a parameter in code and moving the natives manually but it doesn’t work in the dev enviroment. Forcing me to comment and uncomment a line of code every time i want to use the :distZip task.
And, i think the default folder structure looks a litte bit ugly.
So i think to change the default folder structure to something like
Project.zip /assets Game Assets (all the files in resources folder) /bin Application.jar /lib /natives LWJGL Natives Other Libraries Shell Files (.bat and .sh) (And some other stuff)
I’m not sure if it’s possible. But if it’s possible, how?
I tought of making my own distribution task, but I’m not sure if it will work.