I’m using the application plugin and trying to create a distZip as follows:
MyProgram.zip |-bin |-MyProgram.bat |-lib |-MyProgram.jar |-MyNativelib.dll
I’ve persuaded the distZip task to put in all the right files, but now I get:
MyProgram.zip |-MyProgram |-bin |-MyProgram.bat |-lib |-MyProgram.jar |-MyNativelib.dll
I’ve tried experimenting with ‘into’ to tweak the internal structure of the zip archive, but that just adds another level to the hierarchy. What I really need is to get rid of the ‘MyProgram’ directory and put ‘bin’ and ‘lib’ into the root of the zip.
Is there any way to get rid of this unwanted top-level directory?